home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Documentation / User Documentation / Scripting Additions Guide < prev   
MacBinary  |  1993-11-08  |  796.5 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Nov 3 11:30:49 1993, modified Mon Nov 8 06:32:05 1993, creator 'HLX2', type 'ONLN', 797060 bytes "Scripting Additions Guide" , at 0xc2a04 18244 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 19 53 63 72 69 70 74 | 69 6e 67 20 41 64 64 69 |..Script|ing Addi|
|00000010| 74 69 6f 6e 73 20 47 75 | 69 64 65 00 00 00 00 00 |tions Gu|ide.....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0c 29 84 00 | 00 47 44 a8 fd 8d 39 a9 |.....)..|.GD...9.|
|00000060| 03 de b5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a2 29 00 00 |........|.....)..|
|00000080| 0d 41 70 70 6c 65 53 63 | 72 69 70 74 20 53 63 72 |.AppleSc|ript Scr|
|00000090| 69 70 74 69 6e 67 20 41 | 64 64 69 74 69 6f 6e 73 |ipting A|dditions|
|000000a0| 20 47 75 69 64 65 0d 45 | 6e 67 6c 69 73 68 20 44 | Guide.E|nglish D|
|000000b0| 69 61 6c 65 63 74 0d f0 | 09 41 70 70 6c 65 20 43 |ialect..|.Apple C|
|000000c0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d a9 20 |omputer,| Inc... |
|000000d0| 3c 24 79 65 61 72 3e 20 | 41 70 70 6c 65 20 43 6f |<$year> |Apple Co|
|000000e0| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 0d 41 6c 6c |mputer, |Inc..All|
|000000f0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00000100| 2e 20 0d 4e 6f 20 70 61 | 72 74 20 6f 66 20 74 68 |. .No pa|rt of th|
|00000110| 69 73 20 70 75 62 6c 69 | 63 61 74 69 6f 6e 20 6f |is publi|cation o|
|00000120| 72 20 74 68 65 20 73 6f | 66 74 77 61 72 65 20 64 |r the so|ftware d|
|00000130| 65 73 63 72 69 62 65 64 | 20 69 6e 20 69 74 20 6d |escribed| in it m|
|00000140| 61 79 20 62 65 20 72 65 | 70 72 6f 64 75 63 65 64 |ay be re|produced|
|00000150| 2c 20 73 74 6f 72 65 64 | 20 69 6e 20 61 20 72 65 |, stored| in a re|
|00000160| 74 72 69 65 76 61 6c 20 | 73 79 73 74 65 6d 2c 20 |trieval |system, |
|00000170| 6f 72 20 74 72 61 6e 73 | 6d 69 74 74 65 64 2c 20 |or trans|mitted, |
|00000180| 69 6e 20 61 6e 79 20 66 | 6f 72 6d 20 6f 72 20 62 |in any f|orm or b|
|00000190| 79 20 61 6e 79 20 6d 65 | 61 6e 73 2c 20 6d 65 63 |y any me|ans, mec|
|000001a0| 68 61 6e 69 63 61 6c 2c | 20 65 6c 65 63 74 72 6f |hanical,| electro|
|000001b0| 6e 69 63 2c 20 70 68 6f | 74 6f 63 6f 70 79 69 6e |nic, pho|tocopyin|
|000001c0| 67 2c 20 72 65 63 6f 72 | 64 69 6e 67 2c 20 6f 72 |g, recor|ding, or|
|000001d0| 20 6f 74 68 65 72 77 69 | 73 65 2c 20 77 69 74 68 | otherwi|se, with|
|000001e0| 6f 75 74 20 70 72 69 6f | 72 20 77 72 69 74 74 65 |out prio|r writte|
|000001f0| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6f 66 20 |n permis|sion of |
|00000200| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|00000210| 49 6e 63 2e 20 0d 50 72 | 69 6e 74 65 64 20 69 6e |Inc. .Pr|inted in|
|00000220| 20 74 68 65 20 55 6e 69 | 74 65 64 20 53 74 61 74 | the Uni|ted Stat|
|00000230| 65 73 20 6f 66 20 41 6d | 65 72 69 63 61 2e 0d 54 |es of Am|erica..T|
|00000240| 68 65 20 41 70 70 6c 65 | 20 6c 6f 67 6f 20 69 73 |he Apple| logo is|
|00000250| 20 61 20 74 72 61 64 65 | 6d 61 72 6b 20 6f 66 20 | a trade|mark of |
|00000260| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|00000270| 49 6e 63 2e 20 55 73 65 | 20 6f 66 20 74 68 65 20 |Inc. Use| of the |
|00000280| d2 6b 65 79 62 6f 61 72 | 64 d3 20 41 70 70 6c 65 |.keyboar|d. Apple|
|00000290| 20 6c 6f 67 6f 20 28 4f | 70 74 69 6f 6e 2d 0d 53 | logo (O|ption-.S|
|000002a0| 68 69 66 74 2d 4b 29 20 | 66 6f 72 20 63 6f 6d 6d |hift-K) |for comm|
|000002b0| 65 72 63 69 61 6c 20 70 | 75 72 70 6f 73 65 73 20 |ercial p|urposes |
|000002c0| 77 69 74 68 6f 75 74 20 | 74 68 65 20 70 72 69 6f |without |the prio|
|000002d0| 72 20 77 72 69 74 74 65 | 6e 20 63 6f 6e 73 65 6e |r writte|n consen|
|000002e0| 74 20 6f 66 20 41 70 70 | 6c 65 20 6d 61 79 20 63 |t of App|le may c|
|000002f0| 6f 6e 73 74 69 74 75 74 | 65 20 74 72 61 64 65 6d |onstitut|e tradem|
|00000300| 61 72 6b 20 69 6e 66 72 | 69 6e 67 65 6d 65 6e 74 |ark infr|ingement|
|00000310| 20 61 6e 64 20 75 6e 66 | 61 69 72 20 63 6f 6d 70 | and unf|air comp|
|00000320| 65 74 69 74 69 6f 6e 20 | 69 6e 20 76 69 6f 6c 61 |etition |in viola|
|00000330| 74 69 6f 6e 20 6f 66 20 | 66 65 64 65 72 61 6c 20 |tion of |federal |
|00000340| 61 6e 64 20 73 74 61 74 | 65 20 6c 61 77 73 2e 0d |and stat|e laws..|
|00000350| 4e 6f 20 6c 69 63 65 6e | 73 65 73 2c 20 65 78 70 |No licen|ses, exp|
|00000360| 72 65 73 73 20 6f 72 20 | 69 6d 70 6c 69 65 64 2c |ress or |implied,|
|00000370| 20 61 72 65 20 67 72 61 | 6e 74 65 64 20 77 69 74 | are gra|nted wit|
|00000380| 68 20 72 65 73 70 65 63 | 74 20 74 6f 20 61 6e 79 |h respec|t to any|
|00000390| 20 6f 66 20 74 68 65 20 | 74 65 63 68 6e 6f 6c 6f | of the |technolo|
|000003a0| 67 79 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |gy descr|ibed in |
|000003b0| 74 68 69 73 20 62 6f 6f | 6b 2e 20 41 70 70 6c 65 |this boo|k. Apple|
|000003c0| 20 72 65 74 61 69 6e 73 | 20 61 6c 6c 20 69 6e 74 | retains| all int|
|000003d0| 65 6c 6c 65 63 74 75 61 | 6c 20 70 72 6f 70 65 72 |ellectua|l proper|
|000003e0| 74 79 20 72 69 67 68 74 | 73 20 61 73 73 6f 63 69 |ty right|s associ|
|000003f0| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 74 65 |ated wit|h the te|
|00000400| 63 68 6e 6f 6c 6f 67 79 | 20 64 65 73 63 72 69 62 |chnology| describ|
|00000410| 65 64 20 69 6e 20 74 68 | 69 73 20 62 6f 6f 6b 2e |ed in th|is book.|
|00000420| 20 54 68 69 73 20 62 6f | 6f 6b 20 69 73 20 69 6e | This bo|ok is in|
|00000430| 74 65 6e 64 65 64 20 74 | 6f 20 61 73 73 69 73 74 |tended t|o assist|
|00000440| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 65 76 | applica|tion dev|
|00000450| 65 6c 6f 70 65 72 73 20 | 74 6f 20 64 65 76 65 6c |elopers |to devel|
|00000460| 6f 70 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |op appli|cations |
|00000470| 6f 6e 6c 79 20 66 6f 72 | 20 41 70 70 6c 65 20 4d |only for| Apple M|
|00000480| 61 63 69 6e 74 6f 73 68 | 20 63 6f 6d 70 75 74 65 |acintosh| compute|
|00000490| 72 73 2e 0d 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |rs..Appl|e Comput|
|000004a0| 65 72 2c 20 49 6e 63 2e | 0d 32 30 35 32 35 20 4d |er, Inc.|.20525 M|
|000004b0| 61 72 69 61 6e 69 20 41 | 76 65 6e 75 65 0d 43 75 |ariani A|venue.Cu|
|000004c0| 70 65 72 74 69 6e 6f 2c | 20 43 41 20 39 35 30 31 |pertino,| CA 9501|
|000004d0| 34 0d 34 30 38 2d 39 39 | 36 2d 31 30 31 30 0d 41 |4.408-99|6-1010.A|
|000004e0| 70 70 6c 65 2c 20 74 68 | 65 20 41 70 70 6c 65 20 |pple, th|e Apple |
|000004f0| 6c 6f 67 6f 2c 20 41 70 | 70 6c 65 53 68 61 72 65 |logo, Ap|pleShare|
|00000500| 2c 20 41 70 70 6c 65 54 | 61 6c 6b 2c 20 48 79 70 |, AppleT|alk, Hyp|
|00000510| 65 72 43 61 72 64 2c 20 | 48 79 70 65 72 54 61 6c |erCard, |HyperTal|
|00000520| 6b 2c 20 4c 61 73 65 72 | 57 72 69 74 65 72 2c 20 |k, Laser|Writer, |
|00000530| 4d 61 63 69 6e 74 6f 73 | 68 2c 20 61 6e 64 20 4d |Macintos|h, and M|
|00000540| 50 57 20 61 72 65 20 74 | 72 61 64 65 6d 61 72 6b |PW are t|rademark|
|00000550| 73 20 6f 66 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |s of App|le Compu|
|00000560| 74 65 72 2c 20 49 6e 63 | 2e 2c 20 72 65 67 69 73 |ter, Inc|., regis|
|00000570| 74 65 72 65 64 20 69 6e | 20 74 68 65 20 55 6e 69 |tered in| the Uni|
|00000580| 74 65 64 20 53 74 61 74 | 65 73 20 61 6e 64 20 6f |ted Stat|es and o|
|00000590| 74 68 65 72 20 63 6f 75 | 6e 74 72 69 65 73 2e 0d |ther cou|ntries..|
|000005a0| 41 70 70 6c 65 53 63 72 | 69 70 74 2c 20 46 69 6e |AppleScr|ipt, Fin|
|000005b0| 64 65 72 2c 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |der, Qui|ckDraw, |
|000005c0| 61 6e 64 20 52 65 73 45 | 64 69 74 20 61 72 65 20 |and ResE|dit are |
|000005d0| 74 72 61 64 65 6d 61 72 | 6b 73 20 6f 66 20 41 70 |trademar|ks of Ap|
|000005e0| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|000005f0| 63 2e 0d 41 64 6f 62 65 | 20 49 6c 6c 75 73 74 72 |c..Adobe| Illustr|
|00000600| 61 74 6f 72 20 61 6e 64 | 20 50 6f 73 74 53 63 72 |ator and| PostScr|
|00000610| 69 70 74 20 61 72 65 20 | 74 72 61 64 65 6d 61 72 |ipt are |trademar|
|00000620| 6b 73 20 6f 66 20 41 64 | 6f 62 65 20 53 79 73 74 |ks of Ad|obe Syst|
|00000630| 65 6d 73 20 49 6e 63 6f | 72 70 6f 72 61 74 65 64 |ems Inco|rporated|
|00000640| 2c 20 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 72 |, which |may be r|
|00000650| 65 67 69 73 74 65 72 65 | 64 20 69 6e 20 63 65 72 |egistere|d in cer|
|00000660| 74 61 69 6e 20 6a 75 72 | 69 73 64 69 63 74 69 6f |tain jur|isdictio|
|00000670| 6e 73 2e 0d 46 72 61 6d | 65 4d 61 6b 65 72 20 69 |ns..Fram|eMaker i|
|00000680| 73 20 61 20 72 65 67 69 | 73 74 65 72 65 64 20 74 |s a regi|stered t|
|00000690| 72 61 64 65 6d 61 72 6b | 20 6f 66 20 46 72 61 6d |rademark| of Fram|
|000006a0| 65 20 54 65 63 68 6e 6f | 6c 6f 67 79 20 43 6f 72 |e Techno|logy Cor|
|000006b0| 70 6f 72 61 74 69 6f 6e | 2e 0d 48 65 6c 76 65 74 |poration|..Helvet|
|000006c0| 69 63 61 20 61 6e 64 20 | 50 61 6c 61 74 69 6e 6f |ica and |Palatino|
|000006d0| 20 61 72 65 20 72 65 67 | 69 73 74 65 72 65 64 20 | are reg|istered |
|000006e0| 74 72 61 64 65 6d 61 72 | 6b 73 20 6f 66 20 4c 69 |trademar|ks of Li|
|000006f0| 6e 6f 74 79 70 65 20 43 | 6f 6d 70 61 6e 79 2e 0d |notype C|ompany..|
|00000700| 49 54 43 20 5a 61 70 66 | 20 44 69 6e 67 62 61 74 |ITC Zapf| Dingbat|
|00000710| 73 20 69 73 20 61 20 72 | 65 67 69 73 74 65 72 65 |s is a r|egistere|
|00000720| 64 20 74 72 61 64 65 6d | 61 72 6b 20 6f 66 20 49 |d tradem|ark of I|
|00000730| 6e 74 65 72 6e 61 74 69 | 6f 6e 61 6c 20 54 79 70 |nternati|onal Typ|
|00000740| 65 66 61 63 65 20 43 6f | 72 70 6f 72 61 74 69 6f |eface Co|rporatio|
|00000750| 6e 2e 0d 4d 69 63 72 6f | 73 6f 66 74 20 69 73 20 |n..Micro|soft is |
|00000760| 61 20 72 65 67 69 73 74 | 65 72 65 64 20 74 72 61 |a regist|ered tra|
|00000770| 64 65 6d 61 72 6b 20 6f | 66 20 4d 69 63 72 6f 73 |demark o|f Micros|
|00000780| 6f 66 74 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2e |oft Corp|oration.|
|00000790| 0d 53 69 6d 75 6c 74 61 | 6e 65 6f 75 73 6c 79 20 |.Simulta|neously |
|000007a0| 70 75 62 6c 69 73 68 65 | 64 20 69 6e 20 74 68 65 |publishe|d in the|
|000007b0| 20 55 6e 69 74 65 64 20 | 53 74 61 74 65 73 20 61 | United |States a|
|000007c0| 6e 64 20 43 61 6e 61 64 | 61 2e 0d 4c 49 4d 49 54 |nd Canad|a..LIMIT|
|000007d0| 45 44 20 57 41 52 52 41 | 4e 54 59 20 4f 4e 20 4d |ED WARRA|NTY ON M|
|000007e0| 45 44 49 41 20 41 4e 44 | 20 52 45 50 4c 41 43 45 |EDIA AND| REPLACE|
|000007f0| 4d 45 4e 54 0d 49 66 20 | 79 6f 75 20 64 69 73 63 |MENT.If |you disc|
|00000800| 6f 76 65 72 20 70 68 79 | 73 69 63 61 6c 20 64 65 |over phy|sical de|
|00000810| 66 65 63 74 73 20 69 6e | 20 74 68 65 20 6d 61 6e |fects in| the man|
|00000820| 75 61 6c 73 20 64 69 73 | 74 72 69 62 75 74 65 64 |uals dis|tributed|
|00000830| 20 77 69 74 68 20 61 6e | 20 41 70 70 6c 65 20 70 | with an| Apple p|
|00000840| 72 6f 64 75 63 74 2c 20 | 41 70 70 6c 65 20 77 69 |roduct, |Apple wi|
|00000850| 6c 6c 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 6d |ll repla|ce the m|
|00000860| 61 6e 75 61 6c 73 20 61 | 74 20 6e 6f 20 63 68 61 |anuals a|t no cha|
|00000870| 72 67 65 20 74 6f 20 79 | 6f 75 2c 20 70 72 6f 76 |rge to y|ou, prov|
|00000880| 69 64 65 64 20 79 6f 75 | 20 72 65 74 75 72 6e 20 |ided you| return |
|00000890| 74 68 65 20 69 74 65 6d | 20 74 6f 20 62 65 20 72 |the item| to be r|
|000008a0| 65 70 6c 61 63 65 64 20 | 77 69 74 68 20 70 72 6f |eplaced |with pro|
|000008b0| 6f 66 20 6f 66 20 70 75 | 72 63 68 61 73 65 20 74 |of of pu|rchase t|
|000008c0| 6f 20 41 70 70 6c 65 20 | 6f 72 20 61 6e 20 61 75 |o Apple |or an au|
|000008d0| 74 68 6f 72 69 7a 65 64 | 20 41 70 70 6c 65 20 64 |thorized| Apple d|
|000008e0| 65 61 6c 65 72 20 64 75 | 72 69 6e 67 20 74 68 65 |ealer du|ring the|
|000008f0| 20 39 30 2d 64 61 79 20 | 70 65 72 69 6f 64 20 61 | 90-day |period a|
|00000900| 66 74 65 72 20 79 6f 75 | 20 70 75 72 63 68 61 73 |fter you| purchas|
|00000910| 65 64 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 2e |ed the s|oftware.|
|00000920| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 41 70 | In addi|tion, Ap|
|00000930| 70 6c 65 20 77 69 6c 6c | 20 72 65 70 6c 61 63 65 |ple will| replace|
|00000940| 20 64 61 6d 61 67 65 64 | 20 6d 61 6e 75 61 6c 73 | damaged| manuals|
|00000950| 20 66 6f 72 20 61 73 20 | 6c 6f 6e 67 20 61 73 20 | for as |long as |
|00000960| 74 68 65 20 73 6f 66 74 | 77 61 72 65 20 69 73 20 |the soft|ware is |
|00000970| 69 6e 63 6c 75 64 65 64 | 20 69 6e 20 41 70 70 6c |included| in Appl|
|00000980| 65 d5 73 20 4d 65 64 69 | 61 20 45 78 63 68 61 6e |e.s Medi|a Exchan|
|00000990| 67 65 20 70 72 6f 67 72 | 61 6d 2e 20 53 65 65 20 |ge progr|am. See |
|000009a0| 79 6f 75 72 20 61 75 74 | 68 6f 72 69 7a 65 64 20 |your aut|horized |
|000009b0| 41 70 70 6c 65 20 64 65 | 61 6c 65 72 20 66 6f 72 |Apple de|aler for|
|000009c0| 20 70 72 6f 67 72 61 6d | 20 63 6f 76 65 72 61 67 | program| coverag|
|000009d0| 65 20 61 6e 64 20 64 65 | 74 61 69 6c 73 2e 20 49 |e and de|tails. I|
|000009e0| 6e 20 73 6f 6d 65 20 63 | 6f 75 6e 74 72 69 65 73 |n some c|ountries|
|000009f0| 20 74 68 65 20 72 65 70 | 6c 61 63 65 6d 65 6e 74 | the rep|lacement|
|00000a00| 20 70 65 72 69 6f 64 20 | 6d 61 79 20 62 65 20 64 | period |may be d|
|00000a10| 69 66 66 65 72 65 6e 74 | 3b 20 63 68 65 63 6b 20 |ifferent|; check |
|00000a20| 77 69 74 68 20 79 6f 75 | 72 20 61 75 74 68 6f 72 |with you|r author|
|00000a30| 69 7a 65 64 20 41 70 70 | 6c 65 20 64 65 61 6c 65 |ized App|le deale|
|00000a40| 72 2e 0d 41 4c 4c 20 49 | 4d 50 4c 49 45 44 20 57 |r..ALL I|MPLIED W|
|00000a50| 41 52 52 41 4e 54 49 45 | 53 20 4f 4e 20 54 48 49 |ARRANTIE|S ON THI|
|00000a60| 53 20 4d 41 4e 55 41 4c | 2c 20 49 4e 43 4c 55 44 |S MANUAL|, INCLUD|
|00000a70| 49 4e 47 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 |ING IMPL|IED WARR|
|00000a80| 41 4e 54 49 45 53 20 4f | 46 20 4d 45 52 43 48 41 |ANTIES O|F MERCHA|
|00000a90| 4e 54 41 2d 0d 42 49 4c | 49 54 59 20 41 4e 44 20 |NTA-.BIL|ITY AND |
|00000aa0| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 20 50 41 |FITNESS |FOR A PA|
|00000ab0| 52 54 49 43 55 4c 41 52 | 20 50 55 52 50 4f 53 45 |RTICULAR| PURPOSE|
|00000ac0| 2c 20 41 52 45 20 4c 49 | 4d 49 54 45 44 20 49 4e |, ARE LI|MITED IN|
|00000ad0| 20 44 55 52 41 54 49 4f | 4e 20 54 4f 20 4e 49 4e | DURATIO|N TO NIN|
|00000ae0| 45 54 59 20 28 39 30 29 | 20 44 41 59 53 20 46 52 |ETY (90)| DAYS FR|
|00000af0| 4f 4d 20 54 48 45 20 44 | 41 54 45 20 4f 46 20 54 |OM THE D|ATE OF T|
|00000b00| 48 45 20 4f 52 49 47 49 | 4e 41 4c 20 52 45 54 41 |HE ORIGI|NAL RETA|
|00000b10| 49 4c 20 50 55 52 43 48 | 41 53 45 20 4f 46 20 54 |IL PURCH|ASE OF T|
|00000b20| 48 49 53 20 50 52 4f 44 | 55 43 54 2e 0d 45 76 65 |HIS PROD|UCT..Eve|
|00000b30| 6e 20 74 68 6f 75 67 68 | 20 41 70 70 6c 65 20 68 |n though| Apple h|
|00000b40| 61 73 20 72 65 76 69 65 | 77 65 64 20 74 68 69 73 |as revie|wed this|
|00000b50| 20 6d 61 6e 75 61 6c 2c | 20 41 50 50 4c 45 20 4d | manual,| APPLE M|
|00000b60| 41 4b 45 53 20 4e 4f 20 | 57 41 52 52 41 4e 54 59 |AKES NO |WARRANTY|
|00000b70| 20 4f 52 20 52 45 50 52 | 45 53 45 4e 54 41 54 49 | OR REPR|ESENTATI|
|00000b80| 4f 4e 2c 20 45 49 54 48 | 45 52 20 45 58 50 52 45 |ON, EITH|ER EXPRE|
|00000b90| 53 53 20 4f 52 20 49 4d | 50 4c 49 45 44 2c 20 57 |SS OR IM|PLIED, W|
|00000ba0| 49 54 48 20 52 45 53 50 | 45 43 54 20 54 4f 20 54 |ITH RESP|ECT TO T|
|00000bb0| 48 49 53 20 4d 41 4e 55 | 41 4c 2c 20 49 54 53 20 |HIS MANU|AL, ITS |
|00000bc0| 51 55 41 4c 49 54 59 2c | 20 41 43 43 55 52 41 43 |QUALITY,| ACCURAC|
|00000bd0| 59 2c 20 4d 45 52 43 48 | 41 4e 54 41 2d 0d 42 49 |Y, MERCH|ANTA-.BI|
|00000be0| 4c 49 54 59 2c 20 4f 52 | 20 46 49 54 4e 45 53 53 |LITY, OR| FITNESS|
|00000bf0| 20 46 4f 52 20 41 20 50 | 41 52 54 49 43 2d 0d 55 | FOR A P|ARTIC-.U|
|00000c00| 4c 41 52 20 50 55 52 50 | 4f 53 45 2e 20 41 53 20 |LAR PURP|OSE. AS |
|00000c10| 41 20 52 45 53 55 4c 54 | 2c 20 54 48 49 53 20 4d |A RESULT|, THIS M|
|00000c20| 41 4e 55 41 4c 20 49 53 | 20 53 4f 4c 44 20 d2 41 |ANUAL IS| SOLD .A|
|00000c30| 53 20 49 53 2c d3 20 41 | 4e 44 20 59 4f 55 2c 20 |S IS,. A|ND YOU, |
|00000c40| 54 48 45 20 50 55 52 43 | 48 41 53 45 52 2c 20 41 |THE PURC|HASER, A|
|00000c50| 52 45 20 41 53 53 55 4d | 49 4e 47 20 54 48 45 20 |RE ASSUM|ING THE |
|00000c60| 45 4e 54 49 52 45 20 52 | 49 53 4b 20 41 53 20 54 |ENTIRE R|ISK AS T|
|00000c70| 4f 20 49 54 53 20 51 55 | 41 4c 49 54 59 20 41 4e |O ITS QU|ALITY AN|
|00000c80| 44 20 41 43 43 55 52 41 | 43 59 2e 0d 49 4e 20 4e |D ACCURA|CY..IN N|
|00000c90| 4f 20 45 56 45 4e 54 20 | 57 49 4c 4c 20 41 50 50 |O EVENT |WILL APP|
|00000ca0| 4c 45 20 42 45 20 4c 49 | 41 42 4c 45 20 46 4f 52 |LE BE LI|ABLE FOR|
|00000cb0| 20 44 49 52 45 43 54 2c | 20 49 4e 44 49 52 45 43 | DIRECT,| INDIREC|
|00000cc0| 54 2c 20 53 50 45 43 49 | 41 4c 2c 20 49 4e 43 49 |T, SPECI|AL, INCI|
|00000cd0| 44 45 4e 54 41 4c 2c 20 | 4f 52 20 43 4f 4e 53 45 |DENTAL, |OR CONSE|
|00000ce0| 51 55 45 4e 54 49 41 4c | 20 44 41 4d 41 47 45 53 |QUENTIAL| DAMAGES|
|00000cf0| 20 52 45 53 55 4c 54 49 | 4e 47 20 46 52 4f 4d 20 | RESULTI|NG FROM |
|00000d00| 41 4e 59 20 44 45 46 45 | 43 54 20 4f 52 20 49 4e |ANY DEFE|CT OR IN|
|00000d10| 41 43 43 55 52 41 43 59 | 20 49 4e 20 54 48 49 53 |ACCURACY| IN THIS|
|00000d20| 20 4d 41 4e 55 41 4c 2c | 20 65 76 65 6e 20 69 66 | MANUAL,| even if|
|00000d30| 20 61 64 76 69 73 65 64 | 20 6f 66 20 74 68 65 20 | advised| of the |
|00000d40| 70 6f 73 73 69 62 69 6c | 69 74 79 20 6f 66 20 73 |possibil|ity of s|
|00000d50| 75 63 68 20 64 61 6d 61 | 67 65 73 2e 0d 54 48 45 |uch dama|ges..THE|
|00000d60| 20 57 41 52 52 41 4e 54 | 59 20 41 4e 44 20 52 45 | WARRANT|Y AND RE|
|00000d70| 4d 45 44 49 45 53 20 53 | 45 54 20 46 4f 52 54 48 |MEDIES S|ET FORTH|
|00000d80| 20 41 42 4f 56 45 20 41 | 52 45 20 45 58 43 4c 55 | ABOVE A|RE EXCLU|
|00000d90| 53 49 56 45 20 41 4e 44 | 20 49 4e 20 4c 49 45 55 |SIVE AND| IN LIEU|
|00000da0| 20 4f 46 20 41 4c 4c 20 | 4f 54 48 45 52 53 2c 20 | OF ALL |OTHERS, |
|00000db0| 4f 52 41 4c 20 4f 52 20 | 57 52 49 54 54 45 4e 2c |ORAL OR |WRITTEN,|
|00000dc0| 20 45 58 50 52 45 53 53 | 20 4f 52 20 49 4d 50 4c | EXPRESS| OR IMPL|
|00000dd0| 49 45 44 2e 20 4e 6f 20 | 41 70 70 6c 65 20 64 65 |IED. No |Apple de|
|00000de0| 61 6c 65 72 2c 20 61 67 | 65 6e 74 2c 20 6f 72 20 |aler, ag|ent, or |
|00000df0| 65 6d 70 6c 6f 79 65 65 | 20 69 73 20 61 75 74 68 |employee| is auth|
|00000e00| 6f 72 69 7a 65 64 20 74 | 6f 20 6d 61 6b 65 20 61 |orized t|o make a|
|00000e10| 6e 79 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 2c |ny modif|ication,|
|00000e20| 20 65 78 74 65 6e 73 69 | 6f 6e 2c 20 6f 72 20 61 | extensi|on, or a|
|00000e30| 64 64 69 74 69 6f 6e 20 | 74 6f 20 74 68 69 73 20 |ddition |to this |
|00000e40| 77 61 72 72 61 6e 74 79 | 2e 0d 53 6f 6d 65 20 73 |warranty|..Some s|
|00000e50| 74 61 74 65 73 20 64 6f | 20 6e 6f 74 20 61 6c 6c |tates do| not all|
|00000e60| 6f 77 20 74 68 65 20 65 | 78 63 6c 75 73 69 6f 6e |ow the e|xclusion|
|00000e70| 20 6f 72 20 6c 69 6d 69 | 74 61 74 69 6f 6e 20 6f | or limi|tation o|
|00000e80| 66 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |f implie|d warran|
|00000e90| 74 69 65 73 20 6f 72 20 | 6c 69 61 62 69 6c 69 74 |ties or |liabilit|
|00000ea0| 79 20 66 6f 72 20 69 6e | 63 69 64 65 6e 74 61 6c |y for in|cidental|
|00000eb0| 20 6f 72 20 63 6f 6e 73 | 65 71 75 65 6e 74 69 61 | or cons|equentia|
|00000ec0| 6c 20 64 61 6d 61 67 65 | 73 2c 20 73 6f 20 74 68 |l damage|s, so th|
|00000ed0| 65 20 61 62 6f 76 65 20 | 6c 69 6d 69 74 61 74 69 |e above |limitati|
|00000ee0| 6f 6e 20 6f 72 20 65 78 | 63 6c 75 73 69 6f 6e 20 |on or ex|clusion |
|00000ef0| 6d 61 79 20 6e 6f 74 20 | 61 70 70 6c 79 20 74 6f |may not |apply to|
|00000f00| 20 79 6f 75 2e 20 54 68 | 69 73 20 77 61 72 72 61 | you. Th|is warra|
|00000f10| 6e 74 79 20 67 69 76 65 | 73 20 79 6f 75 20 73 70 |nty give|s you sp|
|00000f20| 65 63 69 66 69 63 20 6c | 65 67 61 6c 20 72 69 67 |ecific l|egal rig|
|00000f30| 68 74 73 2c 20 61 6e 64 | 20 79 6f 75 20 6d 61 79 |hts, and| you may|
|00000f40| 20 61 6c 73 6f 20 68 61 | 76 65 20 6f 74 68 65 72 | also ha|ve other|
|00000f50| 20 72 69 67 68 74 73 20 | 77 68 69 63 68 20 76 61 | rights |which va|
|00000f60| 72 79 20 66 72 6f 6d 20 | 73 74 61 74 65 20 74 6f |ry from |state to|
|00000f70| 20 73 74 61 74 65 2e 0d | 43 6f 6e 74 65 6e 74 73 | state..|Contents|
|00000f80| 0d 46 69 67 75 72 65 73 | 2c 20 54 61 62 6c 65 73 |.Figures|, Tables|
|00000f90| 2c 20 61 6e 64 20 4c 69 | 73 74 69 6e 67 73 14 14 |, and Li|stings..|
|00000fa0| 76 69 69 0d 50 72 65 66 | 61 63 65 09 41 62 6f 75 |vii.Pref|ace.Abou|
|00000fb0| 74 20 54 68 69 73 20 47 | 75 69 64 65 14 14 69 78 |t This G|uide..ix|
|00000fc0| 0d 0d 41 75 64 69 65 6e | 63 65 14 14 69 78 0d 4f |..Audien|ce..ix.O|
|00000fd0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 20 6f 66 20 54 |rganizat|ion of T|
|00000fe0| 68 69 73 20 47 75 69 64 | 65 14 14 69 78 0d 53 61 |his Guid|e..ix.Sa|
|00000ff0| 6d 70 6c 65 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |mple App|lication|
|00001000| 73 20 61 6e 64 20 53 63 | 72 69 70 74 73 14 14 78 |s and Sc|ripts..x|
|00001010| 0d 46 6f 72 20 4d 6f 72 | 65 20 49 6e 66 6f 72 6d |.For Mor|e Inform|
|00001020| 61 74 69 6f 6e 14 14 78 | 0d 47 65 74 74 69 6e 67 |ation..x|.Getting|
|00001030| 20 53 74 61 72 74 65 64 | 14 14 78 0d 41 70 70 6c | Started|..x.Appl|
|00001040| 65 53 63 72 69 70 74 20 | 4c 61 6e 67 75 61 67 65 |eScript |Language|
|00001050| 14 14 78 0d 4f 74 68 65 | 72 20 41 70 70 6c 65 53 |..x.Othe|r AppleS|
|00001060| 63 72 69 70 74 20 44 69 | 61 6c 65 63 74 73 14 14 |cript Di|alects..|
|00001070| 78 0d 49 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |x.Inform|ation fo|
|00001080| 72 20 50 72 6f 67 72 61 | 6d 6d 65 72 73 14 14 78 |r Progra|mmers..x|
|00001090| 69 0d 43 6f 6e 76 65 6e | 74 69 6f 6e 73 20 55 73 |i.Conven|tions Us|
|000010a0| 65 64 20 69 6e 20 54 68 | 69 73 20 47 75 69 64 65 |ed in Th|is Guide|
|000010b0| 20 14 14 78 69 0d 43 68 | 61 70 74 65 72 20 31 09 | ..xi.Ch|apter 1.|
|000010c0| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 74 6f 20 |Introduc|tion to |
|000010d0| 53 63 72 69 70 74 69 6e | 67 20 41 64 64 69 74 69 |Scriptin|g Additi|
|000010e0| 6f 6e 73 14 14 31 0d 0d | 49 6e 73 74 61 6c 6c 69 |ons..1..|Installi|
|000010f0| 6e 67 20 53 63 72 69 70 | 74 69 6e 67 20 41 64 64 |ng Scrip|ting Add|
|00001100| 69 74 69 6f 6e 73 14 14 | 31 0d 53 65 6e 64 69 6e |itions..|1.Sendin|
|00001110| 67 20 53 63 72 69 70 74 | 69 6e 67 20 41 64 64 69 |g Script|ing Addi|
|00001120| 74 69 6f 6e 20 43 6f 6d | 6d 61 6e 64 73 14 14 32 |tion Com|mands..2|
|00001130| 0d 43 68 61 70 74 65 72 | 20 32 09 53 63 72 69 70 |.Chapter| 2.Scrip|
|00001140| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 20 43 6f |ting Add|ition Co|
|00001150| 6d 6d 61 6e 64 73 14 14 | 35 0d 0d 53 63 72 69 70 |mmands..|5..Scrip|
|00001160| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 20 46 69 |ting Add|ition Fi|
|00001170| 6c 65 73 14 14 35 0d 43 | 6f 6d 6d 61 6e 64 20 44 |les..5.C|ommand D|
|00001180| 65 66 69 6e 69 74 69 6f | 6e 73 14 14 38 0d 41 63 |efinitio|ns..8.Ac|
|00001190| 74 69 76 61 74 65 14 14 | 38 0d 41 53 43 49 49 20 |tivate..|8.ASCII |
|000011a0| 43 68 61 72 61 63 74 65 | 72 14 14 31 30 0d 41 53 |Characte|r..10.AS|
|000011b0| 43 49 49 20 4e 75 6d 62 | 65 72 14 14 31 31 0d 42 |CII Numb|er..11.B|
|000011c0| 65 65 70 14 14 31 33 0d | 43 68 6f 6f 73 65 20 41 |eep..13.|Choose A|
|000011d0| 70 70 6c 69 63 61 74 69 | 6f 6e 14 14 31 34 0d 43 |pplicati|on..14.C|
|000011e0| 68 6f 6f 73 65 20 46 69 | 6c 65 14 14 31 36 0d 43 |hoose Fi|le..16.C|
|000011f0| 68 6f 6f 73 65 20 46 6f | 6c 64 65 72 14 14 31 38 |hoose Fo|lder..18|
|00001200| 0d 43 6c 6f 73 65 20 41 | 63 63 65 73 73 14 14 31 |.Close A|ccess..1|
|00001210| 39 0d 43 75 72 72 65 6e | 74 20 44 61 74 65 14 14 |9.Curren|t Date..|
|00001220| 32 31 0d 44 69 73 70 6c | 61 79 20 44 69 61 6c 6f |21.Displ|ay Dialo|
|00001230| 67 14 14 20 32 32 0d 47 | 65 74 20 45 4f 46 14 14 |g.. 22.G|et EOF..|
|00001240| 32 37 0d 49 6e 66 6f 20 | 46 6f 72 14 14 32 38 0d |27.Info |For..28.|
|00001250| 4c 69 73 74 20 44 69 73 | 6b 73 14 14 33 32 0d 4c |List Dis|ks..32.L|
|00001260| 69 73 74 20 46 6f 6c 64 | 65 72 14 14 33 33 0d 4c |ist Fold|er..33.L|
|00001270| 6f 61 64 20 53 63 72 69 | 70 74 14 14 33 34 0d 4c |oad Scri|pt..34.L|
|00001280| 6f 67 14 14 33 36 0d 4e | 65 77 20 46 69 6c 65 14 |og..36.N|ew File.|
|00001290| 14 33 37 0d 4f 66 66 73 | 65 74 14 14 33 39 0d 4f |.37.Offs|et..39.O|
|000012a0| 70 65 6e 20 66 6f 72 20 | 41 63 63 65 73 73 14 14 |pen for |Access..|
|000012b0| 34 31 0d 50 61 74 68 20 | 54 6f 14 14 34 33 0d 52 |41.Path |To..43.R|
|000012c0| 61 6e 64 6f 6d 20 4e 75 | 6d 62 65 72 14 14 34 36 |andom Nu|mber..46|
|000012d0| 0d 52 65 61 64 14 14 34 | 38 0d 52 6f 75 6e 64 14 |.Read..4|8.Round.|
|000012e0| 14 35 34 0d 52 75 6e 20 | 53 63 72 69 70 74 14 14 |.54.Run |Script..|
|000012f0| 35 35 0d 53 63 72 69 70 | 74 69 6e 67 20 43 6f 6d |55.Scrip|ting Com|
|00001300| 70 6f 6e 65 6e 74 73 14 | 14 35 37 0d 53 65 74 20 |ponents.|.57.Set |
|00001310| 45 4f 46 14 14 35 38 0d | 53 74 61 72 74 20 4c 6f |EOF..58.|Start Lo|
|00001320| 67 14 14 36 30 0d 53 74 | 6f 70 20 4c 6f 67 14 14 |g..60.St|op Log..|
|00001330| 36 32 0d 53 74 6f 72 65 | 20 53 63 72 69 70 74 14 |62.Store| Script.|
|00001340| 14 36 33 0d 54 69 6d 65 | 20 74 6f 20 47 4d 54 14 |.63.Time| to GMT.|
|00001350| 14 36 36 0d 57 72 69 74 | 65 14 14 36 38 0d 55 73 |.66.Writ|e..68.Us|
|00001360| 69 6e 67 20 52 65 61 64 | 2f 57 72 69 74 65 20 43 |ing Read|/Write C|
|00001370| 6f 6d 6d 61 6e 64 73 14 | 14 37 30 0d 43 68 61 70 |ommands.|.70.Chap|
|00001380| 74 65 72 20 33 09 57 72 | 69 74 69 6e 67 20 53 63 |ter 3.Wr|iting Sc|
|00001390| 72 69 70 74 69 6e 67 20 | 41 64 64 69 74 69 6f 6e |ripting |Addition|
|000013a0| 73 14 14 38 35 0d 0d 54 | 79 70 65 73 20 6f 66 20 |s..85..T|ypes of |
|000013b0| 53 63 72 69 70 74 69 6e | 67 20 41 64 64 69 74 69 |Scriptin|g Additi|
|000013c0| 6f 6e 73 14 14 38 35 0d | 41 70 70 6c 65 20 45 76 |ons..85.|Apple Ev|
|000013d0| 65 6e 74 20 48 61 6e 64 | 6c 65 72 20 53 63 72 69 |ent Hand|ler Scri|
|000013e0| 70 74 69 6e 67 20 41 64 | 64 69 74 69 6f 6e 20 20 |pting Ad|dition |
|000013f0| 14 14 38 36 0d 41 70 70 | 6c 65 20 45 76 65 6e 74 |..86.App|le Event|
|00001400| 20 43 6f 65 72 63 69 6f | 6e 73 20 53 63 72 69 70 | Coercio|ns Scrip|
|00001410| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 20 20 14 |ting Add|ition .|
|00001420| 14 38 37 0d 54 68 65 20 | 53 63 72 69 70 74 69 6e |.87.The |Scriptin|
|00001430| 67 20 41 64 64 69 74 69 | 6f 6e 20 53 69 7a 65 20 |g Additi|on Size |
|00001440| 52 65 73 6f 75 72 63 65 | 14 14 38 39 0d 55 73 69 |Resource|..89.Usi|
|00001450| 6e 67 20 4f 74 68 65 72 | 20 52 65 73 6f 75 72 63 |ng Other| Resourc|
|00001460| 65 73 20 57 69 74 68 20 | 53 63 72 69 70 74 69 6e |es With |Scriptin|
|00001470| 67 20 41 64 64 69 74 69 | 6f 6e 73 14 14 39 31 0d |g Additi|ons..91.|
|00001480| 55 73 69 6e 67 20 52 65 | 63 6f 72 64 73 20 66 6f |Using Re|cords fo|
|00001490| 72 20 53 63 72 69 70 74 | 69 6e 67 20 41 64 64 69 |r Script|ing Addi|
|000014a0| 74 69 6f 6e 20 52 65 70 | 6c 79 20 56 61 6c 75 65 |tion Rep|ly Value|
|000014b0| 73 14 14 39 31 0d 53 63 | 72 69 70 74 69 6e 67 20 |s..91.Sc|ripting |
|000014c0| 41 64 64 69 74 69 6f 6e | 20 4c 69 6d 69 74 61 74 |Addition| Limitat|
|000014d0| 69 6f 6e 73 14 14 39 33 | 0d 53 61 6d 70 6c 65 20 |ions..93|.Sample |
|000014e0| 53 63 72 69 70 74 69 6e | 67 20 41 64 64 69 74 69 |Scriptin|g Additi|
|000014f0| 6f 6e 14 14 39 33 0d 41 | 70 70 65 6e 64 69 78 20 |on..93.A|ppendix |
|00001500| 09 53 63 72 69 70 74 69 | 6e 67 20 41 64 64 69 74 |.Scripti|ng Addit|
|00001510| 69 6f 6e 73 20 61 74 20 | 61 20 47 6c 61 6e 63 65 |ions at |a Glance|
|00001520| 14 14 31 30 35 0d 0d 53 | 63 72 69 70 74 69 6e 67 |..105..S|cripting|
|00001530| 20 41 64 64 69 74 69 6f | 6e 20 43 6f 6d 6d 61 6e | Additio|n Comman|
|00001540| 64 73 14 14 31 30 35 0d | 50 6c 61 63 65 68 6f 6c |ds..105.|Placehol|
|00001550| 64 65 72 73 14 14 31 31 | 30 0d 49 6e 64 65 78 14 |ders..11|0.Index.|
|00001560| 14 31 31 33 0d 46 69 67 | 75 72 65 73 2c 20 54 61 |.113.Fig|ures, Ta|
|00001570| 62 6c 65 73 2c 20 61 6e | 64 20 4c 69 73 74 69 6e |bles, an|d Listin|
|00001580| 67 73 0d 43 68 61 70 74 | 65 72 20 31 09 49 6e 74 |gs.Chapt|er 1.Int|
|00001590| 72 6f 64 75 63 74 69 6f | 6e 20 74 6f 20 53 63 72 |roductio|n to Scr|
|000015a0| 69 70 74 69 6e 67 20 41 | 64 64 69 74 69 6f 6e 73 |ipting A|dditions|
|000015b0| 14 14 31 0d 0d 46 69 67 | 75 72 65 20 31 2d 31 09 |..1..Fig|ure 1-1.|
|000015c0| 41 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |A script|ing addi|
|000015d0| 74 69 6f 6e 20 69 63 6f | 6e 20 14 14 31 0d 43 68 |tion ico|n ..1.Ch|
|000015e0| 61 70 74 65 72 20 32 09 | 53 63 72 69 70 74 69 6e |apter 2.|Scriptin|
|000015f0| 67 20 41 64 64 69 74 69 | 6f 6e 20 43 6f 6d 6d 61 |g Additi|on Comma|
|00001600| 6e 64 73 14 14 35 0d 0d | 46 69 67 75 72 65 20 32 |nds..5..|Figure 2|
|00001610| 2d 31 09 41 20 43 68 6f | 6f 73 65 20 41 70 70 6c |-1.A Cho|ose Appl|
|00001620| 69 63 61 74 69 6f 6e 20 | 64 69 61 6c 6f 67 20 62 |ication |dialog b|
|00001630| 6f 78 14 14 31 34 0d 46 | 69 67 75 72 65 20 32 2d |ox..14.F|igure 2-|
|00001640| 32 09 41 20 43 68 6f 6f | 73 65 20 46 69 6c 65 20 |2.A Choo|se File |
|00001650| 64 69 61 6c 6f 67 20 62 | 6f 78 14 14 31 36 0d 46 |dialog b|ox..16.F|
|00001660| 69 67 75 72 65 20 32 2d | 33 09 41 20 43 68 6f 6f |igure 2-|3.A Choo|
|00001670| 73 65 20 46 6f 6c 64 65 | 72 20 64 69 61 6c 6f 67 |se Folde|r dialog|
|00001680| 20 62 6f 78 14 14 31 38 | 0d 46 69 67 75 72 65 20 | box..18|.Figure |
|00001690| 32 2d 34 09 41 20 44 69 | 73 70 6c 61 79 20 44 69 |2-4.A Di|splay Di|
|000016a0| 61 6c 6f 67 20 64 69 61 | 6c 6f 67 20 62 6f 78 14 |alog dia|log box.|
|000016b0| 14 32 33 0d 46 69 67 75 | 72 65 20 32 2d 35 09 41 |.23.Figu|re 2-5.A|
|000016c0| 6c 65 72 74 20 69 63 6f | 6e 73 20 14 14 32 36 0d |lert ico|ns ..26.|
|000016d0| 46 69 67 75 72 65 20 32 | 2d 36 09 41 20 4e 65 77 |Figure 2|-6.A New|
|000016e0| 20 46 69 6c 65 20 64 69 | 61 6c 6f 67 20 62 6f 78 | File di|alog box|
|000016f0| 14 14 33 38 0d 46 69 67 | 75 72 65 20 32 2d 37 09 |..38.Fig|ure 2-7.|
|00001700| 54 68 65 20 53 63 72 69 | 70 74 20 45 64 69 74 6f |The Scri|pt Edito|
|00001710| 72 d5 73 20 45 76 65 6e | 74 20 4c 6f 67 20 77 69 |r.s Even|t Log wi|
|00001720| 6e 64 6f 77 14 14 36 31 | 0d 54 61 62 6c 65 20 32 |ndow..61|.Table 2|
|00001730| 2d 31 09 53 63 72 69 70 | 74 69 6e 67 20 61 64 64 |-1.Scrip|ting add|
|00001740| 69 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 73 20 64 |ition co|mmands d|
|00001750| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 69 73 |escribed| in this|
|00001760| 20 67 75 69 64 65 20 14 | 14 36 0d 4c 69 73 74 69 | guide .|.6.Listi|
|00001770| 6e 67 20 32 2d 31 09 52 | 65 61 64 69 6e 67 20 61 |ng 2-1.R|eading a|
|00001780| 20 73 70 65 63 69 66 69 | 63 20 72 65 63 6f 72 64 | specifi|c record|
|00001790| 20 66 72 6f 6d 20 61 20 | 74 65 78 74 2d 62 61 73 | from a |text-bas|
|000017a0| 65 64 20 64 61 74 61 62 | 61 73 65 20 66 69 6c 65 |ed datab|ase file|
|000017b0| 14 14 37 32 0d 4c 69 73 | 74 69 6e 67 20 32 2d 32 |..72.Lis|ting 2-2|
|000017c0| 09 44 65 6c 65 74 69 6e | 67 20 61 20 72 65 63 6f |.Deletin|g a reco|
|000017d0| 72 64 20 66 72 6f 6d 20 | 61 20 74 65 78 74 2d 62 |rd from |a text-b|
|000017e0| 61 73 65 64 20 64 61 74 | 61 62 61 73 65 20 66 69 |ased dat|abase fi|
|000017f0| 6c 65 14 14 37 34 0d 4c | 69 73 74 69 6e 67 20 32 |le..74.L|isting 2|
|00001800| 2d 33 09 49 6e 73 65 72 | 74 69 6e 67 20 61 20 72 |-3.Inser|ting a r|
|00001810| 65 63 6f 72 64 20 69 6e | 20 61 20 64 61 74 61 62 |ecord in| a datab|
|00001820| 61 73 65 20 66 69 6c 65 | 14 14 37 37 0d 4c 69 73 |ase file|..77.Lis|
|00001830| 74 69 6e 67 20 32 2d 34 | 09 4f 70 65 6e 69 6e 67 |ting 2-4|.Opening|
|00001840| 20 61 20 66 69 6c 65 20 | 66 6f 72 20 77 72 69 74 | a file |for writ|
|00001850| 65 20 61 63 63 65 73 73 | 20 61 6e 64 20 63 72 65 |e access| and cre|
|00001860| 61 74 69 6e 67 20 6f 6e | 65 20 69 66 20 74 68 65 |ating on|e if the|
|00001870| 20 66 69 6c 65 20 0d 64 | 6f 65 73 6e d5 74 20 65 | file .d|oesn.t e|
|00001880| 78 69 73 74 20 14 14 38 | 32 0d 43 68 61 70 74 65 |xist ..8|2.Chapte|
|00001890| 72 20 33 09 57 72 69 74 | 69 6e 67 20 53 63 72 69 |r 3.Writ|ing Scri|
|000018a0| 70 74 69 6e 67 20 41 64 | 64 69 74 69 6f 6e 73 14 |pting Ad|ditions.|
|000018b0| 14 38 35 0d 0d 4c 69 73 | 74 69 6e 67 20 33 2d 31 |.85..Lis|ting 3-1|
|000018c0| 09 52 65 73 6f 75 72 63 | 65 20 74 79 70 65 20 64 |.Resourc|e type d|
|000018d0| 65 63 6c 61 72 61 74 69 | 6f 6e 20 66 6f 72 20 74 |eclarati|on for t|
|000018e0| 68 65 20 27 6f 73 69 7a | 27 20 72 65 73 6f 75 72 |he 'osiz|' resour|
|000018f0| 63 65 14 14 38 39 0d 4c | 69 73 74 69 6e 67 20 33 |ce..89.L|isting 3|
|00001900| 2d 32 09 43 6c 61 73 73 | 65 73 20 61 72 72 61 79 |-2.Class|es array|
|00001910| 20 66 6f 72 20 61 20 73 | 63 72 69 70 74 69 6e 67 | for a s|cripting|
|00001920| 20 61 64 64 69 74 69 6f | 6e 20 74 68 61 74 20 72 | additio|n that r|
|00001930| 65 74 75 72 6e 73 20 61 | 20 72 65 63 6f 72 64 14 |eturns a| record.|
|00001940| 14 39 32 0d 4c 69 73 74 | 69 6e 67 20 33 2d 33 09 |.92.List|ing 3-3.|
|00001950| 50 6c 61 79 20 53 6f 75 | 6e 64 20 73 63 72 69 70 |Play Sou|nd scrip|
|00001960| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 14 14 39 |ting add|ition..9|
|00001970| 34 0d 41 70 70 65 6e 64 | 69 78 20 09 53 63 72 69 |4.Append|ix .Scri|
|00001980| 70 74 69 6e 67 20 41 64 | 64 69 74 69 6f 6e 73 20 |pting Ad|ditions |
|00001990| 61 74 20 61 20 47 6c 61 | 6e 63 65 14 14 31 30 35 |at a Gla|nce..105|
|000019a0| 0d 0d 54 61 62 6c 65 20 | 41 2d 31 09 43 6f 6d 6d |..Table |A-1.Comm|
|000019b0| 61 6e 64 20 73 79 6e 74 | 61 78 20 66 6f 72 20 73 |and synt|ax for s|
|000019c0| 74 61 6e 64 61 72 64 20 | 41 70 70 6c 65 53 63 72 |tandard |AppleScr|
|000019d0| 69 70 74 20 73 63 72 69 | 70 74 69 6e 67 20 0d 61 |ipt scri|pting .a|
|000019e0| 64 64 69 74 69 6f 6e 73 | 20 14 14 31 30 36 0d 54 |dditions| ..106.T|
|000019f0| 61 62 6c 65 20 41 2d 32 | 09 50 6c 61 63 65 68 6f |able A-2|.Placeho|
|00001a00| 6c 64 65 72 73 20 75 73 | 65 64 20 69 6e 20 73 79 |lders us|ed in sy|
|00001a10| 6e 74 61 78 20 64 65 73 | 63 72 69 70 74 69 6f 6e |ntax des|cription|
|00001a20| 73 14 14 31 31 30 0d 41 | 62 6f 75 74 20 54 68 69 |s..110.A|bout Thi|
|00001a30| 73 20 47 75 69 64 65 0d | 0d 0d 54 68 65 20 41 70 |s Guide.|..The Ap|
|00001a40| 70 6c 65 53 63 72 69 70 | 74 20 53 63 72 69 70 74 |pleScrip|t Script|
|00001a50| 69 6e 67 20 41 64 64 69 | 74 69 6f 6e 73 20 47 75 |ing Addi|tions Gu|
|00001a60| 69 64 65 3a 20 45 6e 67 | 6c 69 73 68 20 44 69 61 |ide: Eng|lish Dia|
|00001a70| 6c 65 63 74 20 64 65 73 | 63 72 69 62 65 73 20 74 |lect des|cribes t|
|00001a80| 68 65 20 73 63 72 69 70 | 74 69 6e 67 20 61 64 64 |he scrip|ting add|
|00001a90| 69 74 69 6f 6e 73 20 74 | 68 61 74 20 61 63 63 6f |itions t|hat acco|
|00001aa0| 6d 70 61 6e 79 20 74 68 | 65 20 41 70 70 6c 65 53 |mpany th|e AppleS|
|00001ab0| 63 72 69 70 74 20 45 6e | 67 6c 69 73 68 20 64 69 |cript En|glish di|
|00001ac0| 61 6c 65 63 74 20 6f 66 | 20 74 68 65 20 41 70 70 |alect of| the App|
|00001ad0| 6c 65 53 63 72 69 70 74 | 20 6c 61 6e 67 75 61 67 |leScript| languag|
|00001ae0| 65 2e 20 53 63 72 69 70 | 74 69 6e 67 20 61 64 64 |e. Scrip|ting add|
|00001af0| 69 74 69 6f 6e 73 20 61 | 72 65 20 66 69 6c 65 73 |itions a|re files|
|00001b00| 20 74 68 61 74 20 65 78 | 74 65 6e 64 20 74 68 65 | that ex|tend the|
|00001b10| 20 63 61 70 61 62 69 6c | 69 74 69 65 73 20 6f 66 | capabil|ities of|
|00001b20| 20 74 68 65 20 41 70 70 | 6c 65 53 63 72 69 70 74 | the App|leScript|
|00001b30| 20 6c 61 6e 67 75 61 67 | 65 20 62 79 20 70 72 6f | languag|e by pro|
|00001b40| 76 69 64 69 6e 67 20 61 | 64 64 69 74 69 6f 6e 61 |viding a|dditiona|
|00001b50| 6c 20 63 6f 6d 6d 61 6e | 64 73 20 79 6f 75 20 63 |l comman|ds you c|
|00001b60| 61 6e 20 75 73 65 20 0d | 69 6e 20 73 63 72 69 70 |an use .|in scrip|
|00001b70| 74 73 2e 0d 0d 41 75 64 | 69 65 6e 63 65 0d 0d 54 |ts...Aud|ience..T|
|00001b80| 68 69 73 20 67 75 69 64 | 65 20 69 73 20 66 6f 72 |his guid|e is for|
|00001b90| 20 61 6e 79 6f 6e 65 20 | 77 68 6f 20 77 61 6e 74 | anyone |who want|
|00001ba0| 73 20 74 6f 20 77 72 69 | 74 65 20 6e 65 77 20 73 |s to wri|te new s|
|00001bb0| 63 72 69 70 74 73 20 6f | 72 20 6d 6f 64 69 66 79 |cripts o|r modify|
|00001bc0| 20 65 78 69 73 74 69 6e | 67 20 73 63 72 69 70 74 | existin|g script|
|00001bd0| 73 2e 20 49 74 20 61 6c | 73 6f 20 70 72 6f 76 69 |s. It al|so provi|
|00001be0| 64 65 73 20 73 6f 6d 65 | 20 62 61 73 69 63 20 69 |des some| basic i|
|00001bf0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 6f 72 20 4d |nformati|on for M|
|00001c00| 61 63 69 6e 74 6f 73 68 | 20 73 6f 66 74 77 61 72 |acintosh| softwar|
|00001c10| 65 20 64 65 76 65 6c 6f | 70 65 72 73 20 77 68 6f |e develo|pers who|
|00001c20| 20 77 61 6e 74 20 74 6f | 20 77 72 69 74 65 20 73 | want to| write s|
|00001c30| 63 72 69 70 74 69 6e 67 | 20 61 64 64 69 74 69 6f |cripting| additio|
|00001c40| 6e 73 2e 20 0d 42 65 66 | 6f 72 65 20 75 73 69 6e |ns. .Bef|ore usin|
|00001c50| 67 20 74 68 69 73 20 67 | 75 69 64 65 2c 20 79 6f |g this g|uide, yo|
|00001c60| 75 20 73 68 6f 75 6c 64 | 20 72 65 61 64 20 47 65 |u should| read Ge|
|00001c70| 74 74 69 6e 67 20 53 74 | 61 72 74 65 64 20 57 69 |tting St|arted Wi|
|00001c80| 74 68 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 74 |th Apple|Script t|
|00001c90| 6f 20 6c 65 61 72 6e 20 | 77 68 61 74 20 68 61 72 |o learn |what har|
|00001ca0| 64 77 61 72 65 20 61 6e | 64 20 73 6f 66 74 77 61 |dware an|d softwa|
|00001cb0| 72 65 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 75 |re you n|eed to u|
|00001cc0| 73 65 20 41 70 70 6c 65 | 53 63 72 69 70 74 3b 20 |se Apple|Script; |
|00001cd0| 68 6f 77 20 74 6f 20 0d | 69 6e 73 74 61 6c 6c 20 |how to .|install |
|00001ce0| 41 70 70 6c 65 53 63 72 | 69 70 74 3b 20 61 6e 64 |AppleScr|ipt; and|
|00001cf0| 20 68 6f 77 20 74 6f 20 | 72 75 6e 2c 20 72 65 63 | how to |run, rec|
|00001d00| 6f 72 64 2c 20 61 6e 64 | 20 65 64 69 74 20 73 63 |ord, and| edit sc|
|00001d10| 72 69 70 74 73 2e 20 59 | 6f 75 20 73 68 6f 75 6c |ripts. Y|ou shoul|
|00001d20| 64 20 0d 61 6c 73 6f 20 | 62 65 20 66 61 6d 69 6c |d .also |be famil|
|00001d30| 69 61 72 20 77 69 74 68 | 20 74 68 65 20 41 70 70 |iar with| the App|
|00001d40| 6c 65 53 63 72 69 70 74 | 20 4c 61 6e 67 75 61 67 |leScript| Languag|
|00001d50| 65 20 47 75 69 64 65 3a | 20 45 6e 67 6c 69 73 68 |e Guide:| English|
|00001d60| 20 44 69 61 6c 65 63 74 | 20 28 72 65 66 65 72 72 | Dialect| (referr|
|00001d70| 65 64 20 0d 74 6f 20 74 | 68 72 6f 75 67 68 6f 75 |ed .to t|hroughou|
|00001d80| 74 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |t the re|st of th|
|00001d90| 69 73 20 62 6f 6f 6b 20 | 61 73 20 74 68 65 20 41 |is book |as the A|
|00001da0| 70 70 6c 65 53 63 72 69 | 70 74 20 4c 61 6e 67 75 |ppleScri|pt Langu|
|00001db0| 61 67 65 20 47 75 69 64 | 65 29 2c 20 77 68 69 63 |age Guid|e), whic|
|00001dc0| 68 20 64 65 73 63 72 69 | 62 65 73 20 74 68 65 20 |h descri|bes the |
|00001dd0| 45 6e 67 6c 69 73 68 20 | 64 69 61 6c 65 63 74 20 |English |dialect |
|00001de0| 6f 66 20 74 68 65 20 41 | 70 70 6c 65 53 63 72 69 |of the A|ppleScri|
|00001df0| 70 74 20 73 63 72 69 70 | 74 69 6e 67 20 6c 61 6e |pt scrip|ting lan|
|00001e00| 67 75 61 67 65 2e 0d 4d | 61 63 69 6e 74 6f 73 68 |guage..M|acintosh|
|00001e10| 20 73 6f 66 74 77 61 72 | 65 20 64 65 76 65 6c 6f | softwar|e develo|
|00001e20| 70 65 72 73 20 77 68 6f | 20 77 61 6e 74 20 74 6f |pers who| want to|
|00001e30| 20 77 72 69 74 65 20 73 | 63 72 69 70 74 69 6e 67 | write s|cripting|
|00001e40| 20 61 64 64 69 74 69 6f | 6e 73 20 73 68 6f 75 6c | additio|ns shoul|
|00001e50| 64 20 61 6c 73 6f 20 72 | 65 66 65 72 20 74 6f 20 |d also r|efer to |
|00001e60| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00001e70| 3a 20 49 6e 74 65 72 61 | 70 70 6c 69 63 61 74 69 |: Intera|pplicati|
|00001e80| 6f 6e 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |on Commu|nication|
|00001e90| 2e 0d 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 20 |...Organ|ization |
|00001ea0| 6f 66 20 54 68 69 73 20 | 47 75 69 64 65 0d 0d 54 |of This |Guide..T|
|00001eb0| 68 69 73 20 67 75 69 64 | 65 20 63 6f 6e 74 61 69 |his guid|e contai|
|00001ec0| 6e 73 20 74 68 65 73 65 | 20 63 68 61 70 74 65 72 |ns these| chapter|
|00001ed0| 73 3a 0d 6e 09 43 68 61 | 70 74 65 72 20 31 2c 20 |s:.n.Cha|pter 1, |
|00001ee0| d2 49 6e 74 72 6f 64 75 | 63 74 69 6f 6e 20 74 6f |.Introdu|ction to|
|00001ef0| 20 53 63 72 69 70 74 69 | 6e 67 20 41 64 64 69 74 | Scripti|ng Addit|
|00001f00| 69 6f 6e 73 2c d3 20 69 | 6e 74 72 6f 64 75 63 65 |ions,. i|ntroduce|
|00001f10| 73 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |s script|ing addi|
|00001f20| 74 69 6f 6e 73 20 61 6e | 64 20 74 68 65 20 75 73 |tions an|d the us|
|00001f30| 65 20 6f 66 20 74 68 65 | 69 72 20 63 6f 6d 6d 61 |e of the|ir comma|
|00001f40| 6e 64 73 2e 0d 6e 09 43 | 68 61 70 74 65 72 20 32 |nds..n.C|hapter 2|
|00001f50| 2c 20 d2 53 63 72 69 70 | 74 69 6e 67 20 41 64 64 |, .Scrip|ting Add|
|00001f60| 69 74 69 6f 6e 20 43 6f | 6d 6d 61 6e 64 73 2c d3 |ition Co|mmands,.|
|00001f70| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 63 | describ|es the c|
|00001f80| 6f 6d 6d 61 6e 64 73 20 | 70 72 6f 76 69 64 65 64 |ommands |provided|
|00001f90| 20 62 79 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | by the |standard|
|00001fa0| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|00001fb0| 69 6f 6e 73 20 74 68 61 | 74 20 63 6f 6d 65 20 77 |ions tha|t come w|
|00001fc0| 69 74 68 20 41 70 70 6c | 65 53 63 72 69 70 74 2e |ith Appl|eScript.|
|00001fd0| 0d 6e 09 43 68 61 70 74 | 65 72 20 33 2c 20 d2 57 |.n.Chapt|er 3, .W|
|00001fe0| 72 69 74 69 6e 67 20 53 | 63 72 69 70 74 69 6e 67 |riting S|cripting|
|00001ff0| 20 41 64 64 69 74 69 6f | 6e 73 2c d3 20 70 72 6f | Additio|ns,. pro|
|00002000| 76 69 64 65 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |vides in|formatio|
|00002010| 6e 20 66 6f 72 20 70 72 | 6f 67 72 61 6d 6d 65 72 |n for pr|ogrammer|
|00002020| 73 20 77 68 6f 20 77 69 | 73 68 20 74 6f 20 77 72 |s who wi|sh to wr|
|00002030| 69 74 65 20 73 63 72 69 | 70 74 69 6e 67 20 61 64 |ite scri|pting ad|
|00002040| 64 69 74 69 6f 6e 73 2e | 0d 41 74 20 74 68 65 20 |ditions.|.At the |
|00002050| 65 6e 64 20 6f 66 20 74 | 68 65 20 67 75 69 64 65 |end of t|he guide|
|00002060| 20 61 72 65 20 6f 6e 65 | 20 61 70 70 65 6e 64 69 | are one| appendi|
|00002070| 78 20 61 6e 64 20 61 6e | 20 69 6e 64 65 78 2e 0d |x and an| index..|
|00002080| 6e 09 54 68 65 20 61 70 | 70 65 6e 64 69 78 2c 20 |n.The ap|pendix, |
|00002090| d2 53 63 72 69 70 74 69 | 6e 67 20 41 64 64 69 74 |.Scripti|ng Addit|
|000020a0| 69 6f 6e 73 20 61 74 20 | 61 20 47 6c 61 6e 63 65 |ions at |a Glance|
|000020b0| 2c d3 20 73 75 6d 6d 61 | 72 69 7a 65 73 20 74 68 |,. summa|rizes th|
|000020c0| 65 20 63 6f 6d 6d 61 6e | 64 73 20 64 65 66 69 6e |e comman|ds defin|
|000020d0| 65 64 20 62 79 20 74 68 | 65 20 73 74 61 6e 64 61 |ed by th|e standa|
|000020e0| 72 64 20 73 63 72 69 70 | 74 69 6e 67 20 61 64 64 |rd scrip|ting add|
|000020f0| 69 74 69 6f 6e 73 2e 0d | 0d 53 61 6d 70 6c 65 20 |itions..|.Sample |
|00002100| 41 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 61 6e 64 |Applicat|ions and|
|00002110| 20 53 63 72 69 70 74 73 | 0d 0d 41 20 73 61 6d 70 | Scripts|..A samp|
|00002120| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |le appli|cation, |
|00002130| 74 68 65 20 53 63 72 69 | 70 74 61 62 6c 65 20 54 |the Scri|ptable T|
|00002140| 65 78 74 20 45 64 69 74 | 6f 72 2c 20 69 73 20 69 |ext Edit|or, is i|
|00002150| 6e 63 6c 75 64 65 64 20 | 77 69 74 68 20 41 70 70 |ncluded |with App|
|00002160| 6c 65 53 63 72 69 70 74 | 2e 20 54 68 65 20 53 63 |leScript|. The Sc|
|00002170| 72 69 70 74 61 62 6c 65 | 20 54 65 78 74 20 45 64 |riptable| Text Ed|
|00002180| 69 74 6f 72 20 69 73 20 | 73 63 72 69 70 74 61 62 |itor is |scriptab|
|00002190| 6c 65 3b 20 74 68 61 74 | 20 69 73 2c 20 69 74 20 |le; that| is, it |
|000021a0| 75 6e 64 65 72 73 74 61 | 6e 64 73 20 73 63 72 69 |understa|nds scri|
|000021b0| 70 74 73 20 77 72 69 74 | 74 65 6e 20 69 6e 20 74 |pts writ|ten in t|
|000021c0| 68 65 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 6c |he Apple|Script l|
|000021d0| 61 6e 67 75 61 67 65 2e | 20 49 74 20 61 6c 73 6f |anguage.| It also|
|000021e0| 20 73 75 70 70 6f 72 74 | 73 20 72 65 63 6f 72 64 | support|s record|
|000021f0| 69 6e 67 20 6f 66 20 73 | 63 72 69 70 74 73 3a 20 |ing of s|cripts: |
|00002200| 77 68 65 6e 20 79 6f 75 | 20 75 73 65 20 74 68 65 |when you| use the|
|00002210| 20 52 65 63 6f 72 64 20 | 62 75 74 74 6f 6e 20 69 | Record |button i|
|00002220| 6e 20 74 68 65 20 53 63 | 72 69 70 74 20 45 64 69 |n the Sc|ript Edi|
|00002230| 74 6f 72 20 28 74 68 65 | 20 61 70 70 6c 69 63 61 |tor (the| applica|
|00002240| 74 69 6f 6e 20 79 6f 75 | 20 75 73 65 20 74 6f 20 |tion you| use to |
|00002250| 77 72 69 74 65 20 61 6e | 64 20 6d 6f 64 69 66 79 |write an|d modify|
|00002260| 20 73 63 72 69 70 74 73 | 29 2c 20 74 68 65 20 61 | scripts|), the a|
|00002270| 63 74 69 6f 6e 73 20 79 | 6f 75 20 70 65 72 66 6f |ctions y|ou perfo|
|00002280| 72 6d 20 69 6e 20 74 68 | 65 20 53 63 72 69 70 74 |rm in th|e Script|
|00002290| 61 62 6c 65 20 54 65 78 | 74 20 45 64 69 74 6f 72 |able Tex|t Editor|
|000022a0| 20 67 65 6e 65 72 61 74 | 65 20 41 70 70 6c 65 53 | generat|e AppleS|
|000022b0| 63 72 69 70 74 20 73 74 | 61 74 65 6d 65 6e 74 73 |cript st|atements|
|000022c0| 20 66 6f 72 20 70 65 72 | 66 6f 72 6d 69 6e 67 20 | for per|forming |
|000022d0| 74 68 6f 73 65 20 61 63 | 74 69 6f 6e 73 2e 20 53 |those ac|tions. S|
|000022e0| 63 72 69 70 74 73 20 66 | 6f 72 20 70 65 72 66 6f |cripts f|or perfo|
|000022f0| 72 6d 69 6e 67 20 74 61 | 73 6b 73 20 69 6e 20 74 |rming ta|sks in t|
|00002300| 68 65 20 53 63 72 69 70 | 74 61 62 6c 65 20 54 65 |he Scrip|table Te|
|00002310| 78 74 20 45 64 69 74 6f | 72 20 61 72 65 20 75 73 |xt Edito|r are us|
|00002320| 65 64 20 61 73 20 65 78 | 61 6d 70 6c 65 73 20 74 |ed as ex|amples t|
|00002330| 68 72 6f 75 67 68 6f 75 | 74 20 74 68 69 73 20 67 |hroughou|t this g|
|00002340| 75 69 64 65 2e 20 0d 0d | 46 6f 72 20 4d 6f 72 65 |uide. ..|For More|
|00002350| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 0d 0d 47 65 | Informa|tion..Ge|
|00002360| 74 74 69 6e 67 20 53 74 | 61 72 74 65 64 0d 0d 53 |tting St|arted..S|
|00002370| 65 65 20 74 68 65 20 63 | 6f 6d 70 61 6e 69 6f 6e |ee the c|ompanion|
|00002380| 20 62 6f 6f 6b 20 47 65 | 74 74 69 6e 67 20 53 74 | book Ge|tting St|
|00002390| 61 72 74 65 64 20 57 69 | 74 68 20 41 70 70 6c 65 |arted Wi|th Apple|
|000023a0| 53 63 72 69 70 74 20 74 | 6f 20 6c 65 61 72 6e 20 |Script t|o learn |
|000023b0| 77 68 61 74 20 68 61 72 | 64 77 61 72 65 20 61 6e |what har|dware an|
|000023c0| 64 20 73 6f 66 74 77 61 | 72 65 20 79 6f 75 20 6e |d softwa|re you n|
|000023d0| 65 65 64 20 74 6f 20 75 | 73 65 20 41 70 70 6c 65 |eed to u|se Apple|
|000023e0| 53 63 72 69 70 74 3b 20 | 68 6f 77 20 74 6f 20 69 |Script; |how to i|
|000023f0| 6e 73 74 61 6c 6c 20 41 | 70 70 6c 65 53 63 72 69 |nstall A|ppleScri|
|00002400| 70 74 3b 20 61 6e 64 20 | 68 6f 77 20 74 6f 20 72 |pt; and |how to r|
|00002410| 75 6e 2c 20 72 65 63 6f | 72 64 2c 20 61 6e 64 20 |un, reco|rd, and |
|00002420| 65 64 69 74 20 73 63 72 | 69 70 74 73 2e 20 0d 41 |edit scr|ipts. .A|
|00002430| 70 70 6c 65 53 63 72 69 | 70 74 20 4c 61 6e 67 75 |ppleScri|pt Langu|
|00002440| 61 67 65 0d 0d 53 65 65 | 20 74 68 65 20 63 6f 6d |age..See| the com|
|00002450| 70 61 6e 69 6f 6e 20 62 | 6f 6f 6b 20 41 70 70 6c |panion b|ook Appl|
|00002460| 65 53 63 72 69 70 74 20 | 4c 61 6e 67 75 61 67 65 |eScript |Language|
|00002470| 20 47 75 69 64 65 20 66 | 6f 72 20 63 6f 6d 70 6c | Guide f|or compl|
|00002480| 65 74 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ete info|rmation |
|00002490| 61 62 6f 75 74 20 74 68 | 65 20 63 6f 6d 6d 61 6e |about th|e comman|
|000024a0| 64 73 20 61 6e 64 20 6f | 74 68 65 72 20 74 65 72 |ds and o|ther ter|
|000024b0| 6d 73 20 70 72 6f 76 69 | 64 65 64 20 62 79 20 74 |ms provi|ded by t|
|000024c0| 68 65 20 45 6e 67 6c 69 | 73 68 20 64 69 61 6c 65 |he Engli|sh diale|
|000024d0| 63 74 20 6f 66 20 74 68 | 65 20 41 70 70 6c 65 53 |ct of th|e AppleS|
|000024e0| 63 72 69 70 74 20 73 63 | 72 69 70 74 69 6e 67 20 |cript sc|ripting |
|000024f0| 6c 61 6e 67 75 61 67 65 | 20 61 6e 64 20 62 79 20 |language| and by |
|00002500| 74 68 65 20 53 63 72 69 | 70 74 61 62 6c 65 20 54 |the Scri|ptable T|
|00002510| 65 78 74 20 45 64 69 74 | 6f 72 20 61 70 70 6c 69 |ext Edit|or appli|
|00002520| 63 61 74 69 6f 6e 2e 0d | 4f 74 68 65 72 20 41 70 |cation..|Other Ap|
|00002530| 70 6c 65 53 63 72 69 70 | 74 20 44 69 61 6c 65 63 |pleScrip|t Dialec|
|00002540| 74 73 0d 0d 41 20 64 69 | 61 6c 65 63 74 20 69 73 |ts..A di|alect is|
|00002550| 20 61 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 | a versi|on of th|
|00002560| 65 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 6c 61 |e AppleS|cript la|
|00002570| 6e 67 75 61 67 65 20 74 | 68 61 74 20 72 65 73 65 |nguage t|hat rese|
|00002580| 6d 62 6c 65 73 20 61 20 | 70 61 72 74 69 63 75 6c |mbles a |particul|
|00002590| 61 72 20 68 75 6d 61 6e | 20 6c 61 6e 67 75 61 67 |ar human| languag|
|000025a0| 65 20 6f 72 20 61 20 70 | 72 6f 67 72 61 6d 6d 69 |e or a p|rogrammi|
|000025b0| 6e 67 20 6c 61 6e 67 75 | 61 67 65 2e 20 45 61 63 |ng langu|age. Eac|
|000025c0| 68 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 64 69 |h AppleS|cript di|
|000025d0| 61 6c 65 63 74 20 68 61 | 73 20 0d 61 20 63 6f 72 |alect ha|s .a cor|
|000025e0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 73 65 74 20 6f |respondi|ng set o|
|000025f0| 66 20 73 74 61 6e 64 61 | 72 64 20 73 63 72 69 70 |f standa|rd scrip|
|00002600| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 73 20 66 |ting add|itions f|
|00002610| 6f 72 20 74 68 61 74 20 | 64 69 61 6c 65 63 74 2e |or that |dialect.|
|00002620| 20 54 68 69 73 20 67 75 | 69 64 65 20 64 65 73 63 | This gu|ide desc|
|00002630| 72 69 62 65 73 20 74 68 | 65 20 74 65 72 6d 73 20 |ribes th|e terms |
|00002640| 64 65 66 69 6e 65 64 20 | 62 79 20 74 68 65 20 73 |defined |by the s|
|00002650| 74 61 6e 64 61 72 64 20 | 73 63 72 69 70 74 69 6e |tandard |scriptin|
|00002660| 67 20 61 64 64 69 74 69 | 6f 6e 73 20 74 68 61 74 |g additi|ons that|
|00002670| 20 63 6f 6d 65 20 0d 77 | 69 74 68 20 74 68 65 20 | come .w|ith the |
|00002680| 41 70 70 6c 65 53 63 72 | 69 70 74 20 45 6e 67 6c |AppleScr|ipt Engl|
|00002690| 69 73 68 20 64 69 61 6c | 65 63 74 2e 20 53 63 72 |ish dial|ect. Scr|
|000026a0| 69 70 74 69 6e 67 20 61 | 64 64 69 74 69 6f 6e 73 |ipting a|dditions|
|000026b0| 20 69 6e 74 65 6e 64 65 | 64 20 66 6f 72 20 75 73 | intende|d for us|
|000026c0| 65 20 77 69 74 68 20 6f | 74 68 65 72 20 64 69 61 |e with o|ther dia|
|000026d0| 6c 65 63 74 73 20 77 6f | 72 6b 20 74 68 65 20 73 |lects wo|rk the s|
|000026e0| 61 6d 65 20 77 61 79 20 | 62 75 74 20 64 65 66 69 |ame way |but defi|
|000026f0| 6e 65 20 74 65 72 6d 73 | 20 61 6e 64 20 73 79 6e |ne terms| and syn|
|00002700| 74 61 78 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |tax appr|opriate |
|00002710| 66 6f 72 20 74 68 6f 73 | 65 20 64 69 61 6c 65 63 |for thos|e dialec|
|00002720| 74 73 2e 0d 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ts..Info|rmation |
|00002730| 66 6f 72 20 50 72 6f 67 | 72 61 6d 6d 65 72 73 0d |for Prog|rammers.|
|00002740| 0d 49 66 20 79 6f 75 20 | 61 72 65 20 61 6e 20 65 |.If you |are an e|
|00002750| 78 70 65 72 69 65 6e 63 | 65 64 20 70 72 6f 67 72 |xperienc|ed progr|
|00002760| 61 6d 6d 65 72 20 61 6e | 64 20 79 6f 75 20 77 61 |ammer an|d you wa|
|00002770| 6e 74 20 74 6f 20 77 72 | 69 74 65 20 79 6f 75 72 |nt to wr|ite your|
|00002780| 20 6f 77 6e 20 73 63 72 | 69 70 74 69 6e 67 20 61 | own scr|ipting a|
|00002790| 64 64 69 74 69 6f 6e 73 | 2c 20 79 6f 75 20 73 68 |dditions|, you sh|
|000027a0| 6f 75 6c 64 20 62 65 20 | 74 68 6f 72 6f 75 67 68 |ould be |thorough|
|000027b0| 6c 79 20 66 61 6d 69 6c | 69 61 72 20 77 69 74 68 |ly famil|iar with|
|000027c0| 20 74 68 65 20 41 70 70 | 6c 65 20 45 76 65 6e 74 | the App|le Event|
|000027d0| 20 4d 61 6e 61 67 65 72 | 2c 20 41 70 70 6c 65 20 | Manager|, Apple |
|000027e0| 65 76 65 6e 74 20 74 65 | 72 6d 69 6e 6f 6c 6f 67 |event te|rminolog|
|000027f0| 79 20 72 65 73 6f 75 72 | 63 65 73 2c 20 61 6e 64 |y resour|ces, and|
|00002800| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 73 75 | the sta|ndard su|
|00002810| 69 74 65 73 20 6f 66 20 | 41 70 70 6c 65 20 65 76 |ites of |Apple ev|
|00002820| 65 6e 74 73 2e 20 46 6f | 72 20 69 6e 66 6f 72 6d |ents. Fo|r inform|
|00002830| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 74 68 65 20 |ation ab|out the |
|00002840| 41 70 70 6c 65 20 45 76 | 65 6e 74 20 4d 61 6e 61 |Apple Ev|ent Mana|
|00002850| 67 65 72 20 61 6e 64 20 | 41 70 70 6c 65 20 65 76 |ger and |Apple ev|
|00002860| 65 6e 74 20 74 65 72 6d | 69 6e 6f 6c 6f 67 79 20 |ent term|inology |
|00002870| 72 65 73 6f 75 72 63 65 | 73 2c 20 73 65 65 20 49 |resource|s, see I|
|00002880| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 3a |nside Ma|cintosh:|
|00002890| 20 49 6e 74 65 72 61 70 | 70 6c 69 63 61 74 69 6f | Interap|plicatio|
|000028a0| 6e 20 43 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 2e |n Commun|ication.|
|000028b0| 20 46 6f 72 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 | For def|initions|
|000028c0| 20 6f 66 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | of the |standard|
|000028d0| 20 73 75 69 74 65 73 2c | 20 73 65 65 20 74 68 65 | suites,| see the|
|000028e0| 20 41 70 70 6c 65 20 45 | 76 65 6e 74 20 52 65 67 | Apple E|vent Reg|
|000028f0| 69 73 74 72 79 3a 20 53 | 74 61 6e 64 61 72 64 20 |istry: S|tandard |
|00002900| 53 75 69 74 65 73 2e 0d | 0d 43 6f 6e 76 65 6e 74 |Suites..|.Convent|
|00002910| 69 6f 6e 73 20 55 73 65 | 64 20 69 6e 20 54 68 69 |ions Use|d in Thi|
|00002920| 73 20 47 75 69 64 65 20 | 0d 0d 57 6f 72 64 73 20 |s Guide |..Words |
|00002930| 61 6e 64 20 73 61 6d 70 | 6c 65 20 73 63 72 69 70 |and samp|le scrip|
|00002940| 74 73 20 69 6e 20 6d 6f | 6e 6f 73 70 61 63 65 64 |ts in mo|nospaced|
|00002950| 20 66 6f 6e 74 20 61 72 | 65 20 41 70 70 6c 65 53 | font ar|e AppleS|
|00002960| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 20 65 |cript la|nguage e|
|00002970| 6c 65 6d 65 6e 74 73 20 | 74 68 61 74 20 6d 75 73 |lements |that mus|
|00002980| 74 20 62 65 20 74 79 70 | 65 64 20 65 78 61 63 74 |t be typ|ed exact|
|00002990| 6c 79 20 61 73 20 73 68 | 6f 77 6e 2e 20 0d 48 65 |ly as sh|own. .He|
|000029a0| 72 65 20 61 72 65 20 73 | 6f 6d 65 20 61 64 64 69 |re are s|ome addi|
|000029b0| 74 69 6f 6e 61 6c 20 63 | 6f 6e 76 65 6e 74 69 6f |tional c|onventio|
|000029c0| 6e 73 20 75 73 65 64 20 | 69 6e 20 73 79 6e 74 61 |ns used |in synta|
|000029d0| 78 20 64 65 73 63 72 69 | 70 74 69 6f 6e 73 3a 6c |x descri|ptions:l|
|000029e0| 61 6e 67 75 61 67 65 20 | 65 6c 65 6d 65 6e 74 09 |anguage |element.|
|000029f0| 09 0d 09 50 6c 61 69 6e | 20 63 6f 6d 70 75 74 65 |...Plain| compute|
|00002a00| 72 20 66 6f 6e 74 20 69 | 6e 64 69 63 61 74 65 73 |r font i|ndicates|
|00002a10| 20 61 6e 20 65 6c 65 6d | 65 6e 74 20 74 68 61 74 | an elem|ent that|
|00002a20| 20 79 6f 75 20 6d 75 73 | 74 20 74 79 70 65 20 65 | you mus|t type e|
|00002a30| 78 61 63 74 6c 79 20 61 | 73 20 73 68 6f 77 6e 2e |xactly a|s shown.|
|00002a40| 20 49 66 20 74 68 65 72 | 65 20 61 72 65 20 73 70 | If ther|e are sp|
|00002a50| 65 63 69 61 6c 20 73 79 | 6d 62 6f 6c 73 20 28 66 |ecial sy|mbols (f|
|00002a60| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 2b 20 6f 72 |or examp|le, + or|
|00002a70| 20 26 29 2c 20 79 6f 75 | 20 6d 75 73 74 20 61 6c | &), you| must al|
|00002a80| 73 6f 20 74 79 70 65 20 | 74 68 65 6d 20 65 78 61 |so type |them exa|
|00002a90| 63 74 6c 79 20 61 73 20 | 73 68 6f 77 6e 2e 09 0d |ctly as |shown...|
|00002aa0| 70 6c 61 63 65 68 6f 6c | 64 65 72 09 49 74 61 6c |placehol|der.Ital|
|00002ab0| 69 63 20 74 65 78 74 20 | 69 6e 64 69 63 61 74 65 |ic text |indicate|
|00002ac0| 73 20 61 20 70 6c 61 63 | 65 68 6f 6c 64 65 72 20 |s a plac|eholder |
|00002ad0| 74 68 61 74 20 79 6f 75 | 20 6d 75 73 74 20 72 65 |that you| must re|
|00002ae0| 70 6c 61 63 65 20 77 69 | 74 68 20 61 6e 20 61 70 |place wi|th an ap|
|00002af0| 70 72 6f 70 72 69 61 74 | 65 20 76 61 6c 75 65 2e |propriat|e value.|
|00002b00| 20 28 49 6e 20 73 6f 6d | 65 20 70 72 6f 67 72 61 | (In som|e progra|
|00002b10| 6d 6d 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 73 2c |mming la|nguages,|
|00002b20| 20 70 6c 61 63 65 68 6f | 6c 64 65 72 73 20 61 72 | placeho|lders ar|
|00002b30| 65 20 63 61 6c 6c 65 64 | 20 6e 6f 6e 74 65 72 6d |e called| nonterm|
|00002b40| 69 6e 61 6c 73 2e 29 20 | 20 09 0d 5b 6f 70 74 69 |inals.) | ..[opti|
|00002b50| 6f 6e 61 6c 5d 09 42 72 | 61 63 6b 65 74 73 20 69 |onal].Br|ackets i|
|00002b60| 6e 64 69 63 61 74 65 20 | 74 68 61 74 20 74 68 65 |ndicate |that the|
|00002b70| 20 65 6e 63 6c 6f 73 65 | 64 20 6c 61 6e 67 75 61 | enclose|d langua|
|00002b80| 67 65 20 65 6c 65 6d 65 | 6e 74 20 6f 72 20 65 6c |ge eleme|nt or el|
|00002b90| 65 6d 65 6e 74 73 20 61 | 72 65 20 6f 70 74 69 6f |ements a|re optio|
|00002ba0| 6e 61 6c 2e 20 09 0d 28 | 61 20 67 72 6f 75 70 29 |nal. ..(|a group)|
|00002bb0| 09 50 61 72 65 6e 74 68 | 65 73 65 73 20 67 72 6f |.Parenth|eses gro|
|00002bc0| 75 70 20 74 6f 67 65 74 | 68 65 72 20 65 6c 65 6d |up toget|her elem|
|00002bd0| 65 6e 74 73 2e 20 49 66 | 20 70 61 72 65 6e 74 68 |ents. If| parenth|
|00002be0| 65 73 65 73 20 61 72 65 | 20 70 61 72 74 20 6f 66 |eses are| part of|
|00002bf0| 20 74 68 65 20 73 79 6e | 74 61 78 2c 20 74 68 65 | the syn|tax, the|
|00002c00| 79 20 61 72 65 20 73 68 | 6f 77 6e 20 69 6e 20 62 |y are sh|own in b|
|00002c10| 6f 6c 64 2e 09 0d 5b 6f | 70 74 69 6f 6e 61 6c 5d |old...[o|ptional]|
|00002c20| 2e 2e 2e 09 54 68 72 65 | 65 20 65 6c 6c 69 70 73 |....Thre|e ellips|
|00002c30| 69 73 20 70 6f 69 6e 74 | 73 20 28 2e 20 2e 20 2e |is point|s (. . .|
|00002c40| 29 20 61 66 74 65 72 20 | 61 20 67 72 6f 75 70 20 |) after |a group |
|00002c50| 64 65 66 69 6e 65 64 20 | 62 79 20 62 72 61 63 6b |defined |by brack|
|00002c60| 65 74 73 20 69 6e 64 69 | 63 61 74 65 20 74 68 61 |ets indi|cate tha|
|00002c70| 74 20 79 6f 75 20 63 61 | 6e 20 72 65 70 65 61 74 |t you ca|n repeat|
|00002c80| 20 74 68 65 20 67 72 6f | 75 70 20 6f 66 20 65 6c | the gro|up of el|
|00002c90| 65 6d 65 6e 74 73 20 77 | 69 74 68 69 6e 20 62 72 |ements w|ithin br|
|00002ca0| 61 63 6b 65 74 73 20 30 | 20 6f 72 20 6d 6f 72 65 |ackets 0| or more|
|00002cb0| 20 74 69 6d 65 73 2e 09 | 0d 28 61 20 67 72 6f 75 | times..|.(a grou|
|00002cc0| 70 29 2e 20 2e 20 2e 09 | 54 68 72 65 65 20 65 6c |p). . ..|Three el|
|00002cd0| 6c 69 70 73 69 73 20 70 | 6f 69 6e 74 73 20 28 2e |lipsis p|oints (.|
|00002ce0| 20 2e 20 2e 29 20 61 66 | 74 65 72 20 61 20 67 72 | . .) af|ter a gr|
|00002cf0| 6f 75 70 20 64 65 66 69 | 6e 65 64 20 62 79 20 70 |oup defi|ned by p|
|00002d00| 61 72 65 6e 74 68 65 73 | 65 73 20 69 6e 64 69 63 |arenthes|es indic|
|00002d10| 61 74 65 20 74 68 61 74 | 20 79 6f 75 20 63 61 6e |ate that| you can|
|00002d20| 20 72 65 70 65 61 74 20 | 74 68 65 20 67 72 6f 75 | repeat |the grou|
|00002d30| 70 20 6f 66 20 65 6c 65 | 6d 65 6e 74 73 20 77 69 |p of ele|ments wi|
|00002d40| 74 68 69 6e 20 70 61 72 | 65 6e 74 68 65 73 65 73 |thin par|entheses|
|00002d50| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 74 69 6d | one or |more tim|
|00002d60| 65 73 2e 20 09 0d 61 ca | 7c ca 62 ca 7c ca 63 09 |es. ..a.||.b.|.c.|
|00002d70| 56 65 72 74 69 63 61 6c | 20 62 61 72 73 20 73 65 |Vertical| bars se|
|00002d80| 70 61 72 61 74 65 20 65 | 6c 65 6d 65 6e 74 73 20 |parate e|lements |
|00002d90| 69 6e 20 61 20 67 72 6f | 75 70 20 66 72 6f 6d 20 |in a gro|up from |
|00002da0| 77 68 69 63 68 20 79 6f | 75 20 6d 75 73 74 20 63 |which yo|u must c|
|00002db0| 68 6f 6f 73 65 20 61 20 | 73 69 6e 67 6c 65 20 65 |hoose a |single e|
|00002dc0| 6c 65 6d 65 6e 74 2e 20 | 54 68 65 20 65 6c 65 6d |lement. |The elem|
|00002dd0| 65 6e 74 73 20 61 72 65 | 20 6f 66 74 65 6e 20 67 |ents are| often g|
|00002de0| 72 6f 75 70 65 64 20 77 | 69 74 68 69 6e 20 70 61 |rouped w|ithin pa|
|00002df0| 72 65 6e 74 68 65 73 65 | 73 20 6f 72 20 62 72 61 |renthese|s or bra|
|00002e00| 63 6b 65 74 73 2e 20 20 | 09 0d 0d 49 6e 74 72 6f |ckets. |...Intro|
|00002e10| 64 75 63 74 69 6f 6e 20 | 74 6f 20 0d 53 63 72 69 |duction |to .Scri|
|00002e20| 70 74 69 6e 67 20 41 64 | 64 69 74 69 6f 6e 73 0d |pting Ad|ditions.|
|00002e30| 0d 53 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 |.Scripti|ng addit|
|00002e40| 69 6f 6e 73 20 61 72 65 | 20 66 69 6c 65 73 20 74 |ions are| files t|
|00002e50| 68 61 74 20 65 78 74 65 | 6e 64 20 74 68 65 20 63 |hat exte|nd the c|
|00002e60| 61 70 61 62 69 6c 69 74 | 69 65 73 20 6f 66 20 74 |apabilit|ies of t|
|00002e70| 68 65 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 6c |he Apple|Script l|
|00002e80| 61 6e 67 75 61 67 65 20 | 62 79 20 70 72 6f 76 69 |anguage |by provi|
|00002e90| 64 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |ding add|itional |
|00002ea0| 63 6f 6d 6d 61 6e 64 73 | 20 6f 72 20 63 6f 65 72 |commands| or coer|
|00002eb0| 63 69 6f 6e 73 20 79 6f | 75 20 63 61 6e 20 75 73 |cions yo|u can us|
|00002ec0| 65 20 69 6e 20 73 63 72 | 69 70 74 73 2e 20 54 68 |e in scr|ipts. Th|
|00002ed0| 65 79 20 61 72 65 20 73 | 69 6d 69 6c 61 72 20 74 |ey are s|imilar t|
|00002ee0| 6f 20 58 43 4d 44 73 20 | 61 6e 64 20 58 46 43 4e |o XCMDs |and XFCN|
|00002ef0| 73 20 69 6e 20 48 79 70 | 65 72 54 61 6c 6b 2e 20 |s in Hyp|erTalk. |
|00002f00| 0d 54 68 69 73 20 63 68 | 61 70 74 65 72 20 64 65 |.This ch|apter de|
|00002f10| 73 63 72 69 62 65 73 20 | 68 6f 77 20 74 6f 20 69 |scribes |how to i|
|00002f20| 6e 73 74 61 6c 6c 20 73 | 63 72 69 70 74 69 6e 67 |nstall s|cripting|
|00002f30| 20 61 64 64 69 74 69 6f | 6e 73 20 61 6e 64 20 62 | additio|ns and b|
|00002f40| 72 69 65 66 6c 79 20 64 | 65 73 63 72 69 62 65 73 |riefly d|escribes|
|00002f50| 20 68 6f 77 20 73 63 72 | 69 70 74 69 6e 67 20 61 | how scr|ipting a|
|00002f60| 64 64 69 74 69 6f 6e 20 | 63 6f 6d 6d 61 6e 64 73 |ddition |commands|
|00002f70| 20 77 6f 72 6b 2e 20 46 | 6f 72 20 6d 6f 72 65 20 | work. F|or more |
|00002f80| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00002f90| 74 20 74 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |t the di|fference|
|00002fa0| 73 20 62 65 74 77 65 65 | 6e 20 73 63 72 69 70 74 |s betwee|n script|
|00002fb0| 69 6e 67 20 61 64 64 69 | 74 69 6f 6e 20 63 6f 6d |ing addi|tion com|
|00002fc0| 6d 61 6e 64 73 2c 20 61 | 70 70 6c 69 63 61 74 69 |mands, a|pplicati|
|00002fd0| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 73 2c 20 41 70 70 |on comma|nds, App|
|00002fe0| 6c 65 53 63 72 69 70 74 | 20 63 6f 6d 6d 61 6e 64 |leScript| command|
|00002ff0| 73 2c 20 61 6e 64 20 75 | 73 65 72 2d 64 65 66 69 |s, and u|ser-defi|
|00003000| 6e 65 64 20 63 6f 6d 6d | 61 6e 64 73 2c 20 73 65 |ned comm|ands, se|
|00003010| 65 20 43 68 61 70 74 65 | 72 20 34 2c 20 d2 43 6f |e Chapte|r 4, .Co|
|00003020| 6d 6d 61 6e 64 73 2c d3 | 20 6f 66 20 74 68 65 20 |mmands,.| of the |
|00003030| 41 70 70 6c 65 53 63 72 | 69 70 74 20 4c 61 6e 67 |AppleScr|ipt Lang|
|00003040| 75 61 67 65 20 47 75 69 | 64 65 2e 0d 0d 49 6e 73 |uage Gui|de...Ins|
|00003050| 74 61 6c 6c 69 6e 67 20 | 53 63 72 69 70 74 69 6e |talling |Scriptin|
|00003060| 67 20 41 64 64 69 74 69 | 6f 6e 73 0d 0d 57 68 65 |g Additi|ons..Whe|
|00003070| 6e 20 79 6f 75 20 69 6e | 73 74 61 6c 6c 20 41 70 |n you in|stall Ap|
|00003080| 70 6c 65 53 63 72 69 70 | 74 20 75 73 69 6e 67 20 |pleScrip|t using |
|00003090| 74 68 65 20 49 6e 73 74 | 61 6c 6c 65 72 20 61 73 |the Inst|aller as|
|000030a0| 20 64 65 73 63 72 69 62 | 65 64 20 69 6e 20 47 65 | describ|ed in Ge|
|000030b0| 74 74 69 6e 67 20 0d 53 | 74 61 72 74 65 64 20 57 |tting .S|tarted W|
|000030c0| 69 74 68 20 41 70 70 6c | 65 53 63 72 69 70 74 2c |ith Appl|eScript,|
|000030d0| 20 74 68 65 20 49 6e 73 | 74 61 6c 6c 65 72 20 63 | the Ins|taller c|
|000030e0| 72 65 61 74 65 73 20 61 | 20 66 6f 6c 64 65 72 20 |reates a| folder |
|000030f0| 69 6e 20 74 68 65 20 45 | 78 74 65 6e 73 69 6f 6e |in the E|xtension|
|00003100| 73 20 66 6f 6c 64 65 72 | 20 28 77 68 69 63 68 20 |s folder| (which |
|00003110| 69 73 20 6c 6f 63 61 74 | 65 64 20 69 6e 73 69 64 |is locat|ed insid|
|00003120| 65 20 74 68 65 20 53 79 | 73 74 65 6d 20 46 6f 6c |e the Sy|stem Fol|
|00003130| 64 65 72 20 66 6f 72 20 | 79 6f 75 72 20 63 6f 6d |der for |your com|
|00003140| 70 75 74 65 72 29 20 63 | 61 6c 6c 65 64 20 53 63 |puter) c|alled Sc|
|00003150| 72 69 70 74 69 6e 67 20 | 41 64 64 69 74 69 6f 6e |ripting |Addition|
|00003160| 73 20 61 6e 64 20 63 6f | 70 69 65 73 20 61 20 6e |s and co|pies a n|
|00003170| 75 6d 62 65 72 20 6f 66 | 20 73 63 72 69 70 74 69 |umber of| scripti|
|00003180| 6e 67 20 61 64 64 69 74 | 69 6f 6e 20 66 69 6c 65 |ng addit|ion file|
|00003190| 73 20 69 6e 74 6f 20 74 | 68 61 74 20 66 6f 6c 64 |s into t|hat fold|
|000031a0| 65 72 2e 20 0d 54 68 65 | 20 66 69 6c 65 20 74 79 |er. .The| file ty|
|000031b0| 70 65 20 6f 66 20 61 20 | 73 63 72 69 70 74 69 6e |pe of a |scriptin|
|000031c0| 67 20 61 64 64 69 74 69 | 6f 6e 20 28 64 69 73 70 |g additi|on (disp|
|000031d0| 6c 61 79 65 64 20 69 6e | 20 74 68 65 20 47 65 74 |layed in| the Get|
|000031e0| 20 49 6e 66 6f 20 77 69 | 6e 64 6f 77 29 20 69 73 | Info wi|ndow) is|
|000031f0| 20 d2 41 70 70 6c 65 53 | 63 72 69 70 74 20 64 6f | .AppleS|cript do|
|00003200| 63 75 6d 65 6e 74 2e d3 | 20 0d 46 69 67 75 72 65 |cument..| .Figure|
|00003210| 20 31 2d 31 20 73 68 6f | 77 73 20 61 20 73 63 72 | 1-1 sho|ws a scr|
|00003220| 69 70 74 69 6e 67 20 61 | 64 64 69 74 69 6f 6e 20 |ipting a|ddition |
|00003230| 69 63 6f 6e 2e 20 46 6f | 72 20 61 20 6c 69 73 74 |icon. Fo|r a list|
|00003240| 20 6f 66 20 74 68 65 20 | 73 63 72 69 70 74 69 6e | of the |scriptin|
|00003250| 67 20 61 64 64 69 74 69 | 6f 6e 73 20 69 6e 73 74 |g additi|ons inst|
|00003260| 61 6c 6c 65 64 20 77 69 | 74 68 20 41 70 70 6c 65 |alled wi|th Apple|
|00003270| 53 63 72 69 70 74 20 61 | 6e 64 20 74 68 65 20 63 |Script a|nd the c|
|00003280| 6f 6d 6d 61 6e 64 73 20 | 74 68 65 79 20 70 72 6f |ommands |they pro|
|00003290| 76 69 64 65 2c 20 73 65 | 65 20 54 61 62 6c 65 20 |vide, se|e Table |
|000032a0| 32 2d 31 20 6f 6e 20 70 | 61 67 65 20 36 2e 0d 46 |2-1 on p|age 6..F|
|000032b0| 69 67 75 72 65 20 31 2d | 31 09 41 20 73 63 72 69 |igure 1-|1.A scri|
|000032c0| 70 74 69 6e 67 20 61 64 | 64 69 74 69 6f 6e 20 69 |pting ad|dition i|
|000032d0| 63 6f 6e 20 0d 0d 45 61 | 63 68 20 73 63 72 69 70 |con ..Ea|ch scrip|
|000032e0| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 20 66 69 |ting add|ition fi|
|000032f0| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 6f 6e 65 20 |le conta|ins one |
|00003300| 6f 72 20 6d 6f 72 65 20 | 63 6f 6d 6d 61 6e 64 20 |or more |command |
|00003310| 68 61 6e 64 6c 65 72 73 | 2e 20 49 66 20 61 20 73 |handlers|. If a s|
|00003320| 63 72 69 70 74 69 6e 67 | 20 61 64 64 69 74 69 6f |cripting| additio|
|00003330| 6e 20 66 69 6c 65 20 69 | 73 20 6c 6f 63 61 74 65 |n file i|s locate|
|00003340| 64 20 69 6e 20 74 68 65 | 20 53 63 72 69 70 74 69 |d in the| Scripti|
|00003350| 6e 67 20 41 64 64 69 74 | 69 6f 6e 73 20 66 6f 6c |ng Addit|ions fol|
|00003360| 64 65 72 20 28 69 6e 20 | 74 68 65 20 45 78 74 65 |der (in |the Exte|
|00003370| 6e 73 69 6f 6e 73 20 66 | 6f 6c 64 65 72 20 6f 66 |nsions f|older of|
|00003380| 20 74 68 65 20 53 79 73 | 74 65 6d 20 46 6f 6c 64 | the Sys|tem Fold|
|00003390| 65 72 29 2c 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |er), the| command|
|000033a0| 20 68 61 6e 64 6c 65 72 | 73 20 69 74 20 70 72 6f | handler|s it pro|
|000033b0| 76 69 64 65 73 20 61 72 | 65 20 61 76 61 69 6c 61 |vides ar|e availa|
|000033c0| 62 6c 65 20 66 6f 72 20 | 75 73 65 20 62 79 20 61 |ble for |use by a|
|000033d0| 6e 79 20 73 63 72 69 70 | 74 20 77 68 6f 73 65 20 |ny scrip|t whose |
|000033e0| 74 61 72 67 65 74 20 69 | 73 20 61 6e 20 61 70 70 |target i|s an app|
|000033f0| 6c 69 63 61 74 69 6f 6e | 20 6f 6e 20 74 68 61 74 |lication| on that|
|00003400| 20 63 6f 6d 70 75 74 65 | 72 2e 20 0d 53 6f 6d 65 | compute|r. .Some|
|00003410| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|00003420| 69 6f 6e 73 20 61 6c 73 | 6f 20 64 65 66 69 6e 65 |ions als|o define|
|00003430| 20 6f 62 6a 65 63 74 20 | 63 6c 61 73 73 65 73 20 | object |classes |
|00003440| 66 6f 72 20 72 65 63 6f | 72 64 73 20 72 65 74 75 |for reco|rds retu|
|00003450| 72 6e 65 64 20 62 79 20 | 74 68 65 69 72 20 63 6f |rned by |their co|
|00003460| 6d 6d 61 6e 64 73 2e 20 | 48 6f 77 65 76 65 72 2c |mmands. |However,|
|00003470| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|00003480| 69 6f 6e 20 63 6f 6d 6d | 61 6e 64 73 20 64 6f 20 |ion comm|ands do |
|00003490| 6e 6f 74 20 6e 6f 72 6d | 61 6c 6c 79 20 61 63 74 |not norm|ally act|
|000034a0| 20 6f 6e 20 6f 62 6a 65 | 63 74 73 20 64 65 66 69 | on obje|cts defi|
|000034b0| 6e 65 64 20 62 79 20 69 | 6e 64 69 76 69 64 75 61 |ned by i|ndividua|
|000034c0| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 0d |l applic|ations..|
|000034d0| 54 68 65 20 73 63 72 69 | 70 74 69 6e 67 20 61 64 |The scri|pting ad|
|000034e0| 64 69 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 73 20 |dition c|ommands |
|000034f0| 41 63 74 69 76 61 74 65 | 2c 20 4c 6f 67 2c 20 53 |Activate|, Log, S|
|00003500| 74 61 72 74 20 4c 6f 67 | 2c 20 61 6e 64 20 53 74 |tart Log|, and St|
|00003510| 6f 70 20 4c 6f 67 20 61 | 72 65 20 70 61 72 74 20 |op Log a|re part |
|00003520| 6f 66 20 74 68 65 20 41 | 70 70 6c 65 53 63 72 69 |of the A|ppleScri|
|00003530| 70 74 20 65 78 74 65 6e | 73 69 6f 6e 20 61 6e 64 |pt exten|sion and|
|00003540| 20 64 6f 20 6e 6f 74 20 | 68 61 76 65 20 73 65 70 | do not |have sep|
|00003550| 61 72 61 74 65 20 66 69 | 6c 65 73 20 69 6e 20 74 |arate fi|les in t|
|00003560| 68 65 20 53 63 72 69 70 | 74 69 6e 67 20 41 64 64 |he Scrip|ting Add|
|00003570| 69 74 69 6f 6e 73 20 66 | 6f 6c 64 65 72 2e 20 57 |itions f|older. W|
|00003580| 69 74 68 20 74 68 65 20 | 65 78 63 65 70 74 69 6f |ith the |exceptio|
|00003590| 6e 20 6f 66 20 74 68 65 | 73 65 20 63 6f 6d 6d 61 |n of the|se comma|
|000035a0| 6e 64 73 2c 20 41 70 70 | 6c 65 53 63 72 69 70 74 |nds, App|leScript|
|000035b0| 20 72 65 63 6f 67 6e 69 | 7a 65 73 20 73 63 72 69 | recogni|zes scri|
|000035c0| 70 74 69 6e 67 20 61 64 | 64 69 74 69 6f 6e 20 63 |pting ad|dition c|
|000035d0| 6f 6d 6d 61 6e 64 73 20 | 6f 6e 6c 79 20 69 66 20 |ommands |only if |
|000035e0| 74 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |the corr|espondin|
|000035f0| 67 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |g script|ing addi|
|00003600| 74 69 6f 6e 20 66 69 6c | 65 73 20 61 72 65 20 6c |tion fil|es are l|
|00003610| 6f 63 61 74 65 64 20 69 | 6e 20 74 68 65 20 53 63 |ocated i|n the Sc|
|00003620| 72 69 70 74 69 6e 67 20 | 41 64 64 69 74 69 6f 6e |ripting |Addition|
|00003630| 73 20 66 6f 6c 64 65 72 | 2e 20 49 66 20 61 66 74 |s folder|. If aft|
|00003640| 65 72 20 69 6e 73 74 61 | 6c 6c 69 6e 67 20 41 70 |er insta|lling Ap|
|00003650| 70 6c 65 53 63 72 69 70 | 74 20 79 6f 75 20 72 65 |pleScrip|t you re|
|00003660| 63 65 69 76 65 20 61 64 | 64 69 74 69 6f 6e 61 6c |ceive ad|ditional|
|00003670| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|00003680| 69 6f 6e 73 20 66 72 6f | 6d 20 41 70 70 6c 65 20 |ions fro|m Apple |
|00003690| 6f 72 20 61 6e 6f 74 68 | 65 72 20 76 65 6e 64 6f |or anoth|er vendo|
|000036a0| 72 2c 20 79 6f 75 20 6d | 75 73 74 20 63 6f 70 79 |r, you m|ust copy|
|000036b0| 20 74 68 65 6d 20 69 6e | 74 6f 20 74 68 65 20 53 | them in|to the S|
|000036c0| 63 72 69 70 74 69 6e 67 | 20 41 64 64 69 74 69 6f |cripting| Additio|
|000036d0| 6e 73 20 66 6f 6c 64 65 | 72 20 62 65 66 6f 72 65 |ns folde|r before|
|000036e0| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 | you can| use the|
|000036f0| 69 72 20 63 6f 6d 6d 61 | 6e 64 73 20 69 6e 20 73 |ir comma|nds in s|
|00003700| 63 72 69 70 74 73 2e 0d | 49 66 20 79 6f 75 20 75 |cripts..|If you u|
|00003710| 73 65 20 61 20 73 63 72 | 69 70 74 69 6e 67 20 61 |se a scr|ipting a|
|00003720| 64 64 69 74 69 6f 6e 20 | 63 6f 6d 6d 61 6e 64 20 |ddition |command |
|00003730| 69 6e 20 61 20 73 63 72 | 69 70 74 20 61 6e 64 20 |in a scr|ipt and |
|00003740| 67 65 74 20 61 6e 20 65 | 72 72 6f 72 20 6d 65 73 |get an e|rror mes|
|00003750| 73 61 67 65 20 73 74 61 | 74 69 6e 67 20 74 68 61 |sage sta|ting tha|
|00003760| 74 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 69 73 |t the co|mmand is|
|00003770| 20 75 6e 64 65 66 69 6e | 65 64 2c 20 63 68 65 63 | undefin|ed, chec|
|00003780| 6b 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |k to mak|e sure t|
|00003790| 68 65 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he corre|sponding|
|000037a0| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|000037b0| 69 6f 6e 20 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |ion is i|nstalled|
|000037c0| 20 69 6e 20 74 68 65 20 | 53 63 72 69 70 74 69 6e | in the |Scriptin|
|000037d0| 67 20 41 64 64 69 74 69 | 6f 6e 73 20 66 6f 6c 64 |g Additi|ons fold|
|000037e0| 65 72 2e 20 20 0d 0d 53 | 65 6e 64 69 6e 67 20 53 |er. ..S|ending S|
|000037f0| 63 72 69 70 74 69 6e 67 | 20 41 64 64 69 74 69 6f |cripting| Additio|
|00003800| 6e 20 43 6f 6d 6d 61 6e | 64 73 0d 0d 4c 69 6b 65 |n Comman|ds..Like|
|00003810| 20 74 68 65 20 74 61 72 | 67 65 74 20 6f 66 20 61 | the tar|get of a|
|00003820| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 63 6f |n applic|ation co|
|00003830| 6d 6d 61 6e 64 2c 20 74 | 68 65 20 74 61 72 67 65 |mmand, t|he targe|
|00003840| 74 20 6f 66 20 61 20 73 | 63 72 69 70 74 69 6e 67 |t of a s|cripting|
|00003850| 20 61 64 64 69 74 69 6f | 6e 20 63 6f 6d 6d 61 6e | additio|n comman|
|00003860| 64 20 69 73 20 61 6c 77 | 61 79 73 20 61 6e 20 61 |d is alw|ays an a|
|00003870| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |pplicati|on objec|
|00003880| 74 20 6f 72 20 61 20 73 | 63 72 69 70 74 20 6f 62 |t or a s|cript ob|
|00003890| 6a 65 63 74 2e 20 49 66 | 20 74 68 65 20 73 63 72 |ject. If| the scr|
|000038a0| 69 70 74 20 0d 64 6f 65 | 73 6e d5 74 20 65 78 70 |ipt .doe|sn.t exp|
|000038b0| 6c 69 63 69 74 6c 79 20 | 73 70 65 63 69 66 79 20 |licitly |specify |
|000038c0| 74 68 65 20 74 61 72 67 | 65 74 20 77 69 74 68 20 |the targ|et with |
|000038d0| 61 20 54 65 6c 6c 20 73 | 74 61 74 65 6d 65 6e 74 |a Tell s|tatement|
|000038e0| 2c 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 73 65 |, AppleS|cript se|
|000038f0| 6e 64 73 20 0d 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |nds .the| command|
|00003900| 20 74 6f 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | to the |default |
|00003910| 74 61 72 67 65 74 20 61 | 70 70 6c 69 63 61 74 69 |target a|pplicati|
|00003920| 6f 6e 2c 20 77 68 69 63 | 68 20 69 73 20 75 73 75 |on, whic|h is usu|
|00003930| 61 6c 6c 79 20 74 68 65 | 20 61 70 70 6c 69 63 61 |ally the| applica|
|00003940| 74 69 6f 6e 20 72 75 6e | 6e 69 6e 67 20 74 68 65 |tion run|ning the|
|00003950| 20 73 63 72 69 70 74 20 | 28 66 6f 72 20 65 78 61 | script |(for exa|
|00003960| 6d 70 6c 65 2c 20 74 68 | 65 20 53 63 72 69 70 74 |mple, th|e Script|
|00003970| 20 45 64 69 74 6f 72 29 | 2e 0d 41 20 73 63 72 69 | Editor)|..A scri|
|00003980| 70 74 69 6e 67 20 61 64 | 64 69 74 69 6f 6e 20 63 |pting ad|dition c|
|00003990| 6f 6d 6d 61 6e 64 20 70 | 65 72 66 6f 72 6d 73 20 |ommand p|erforms |
|000039a0| 69 74 73 20 61 63 74 69 | 6f 6e 20 6f 6e 6c 79 20 |its acti|on only |
|000039b0| 61 66 74 65 72 20 74 68 | 65 20 63 6f 6d 6d 61 6e |after th|e comman|
|000039c0| 64 20 68 61 73 20 62 65 | 65 6e 20 72 65 63 65 69 |d has be|en recei|
|000039d0| 76 65 64 20 62 79 20 61 | 20 74 61 72 67 65 74 20 |ved by a| target |
|000039e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 55 6e 6c |applicat|ion. Unl|
|000039f0| 69 6b 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ike appl|ication |
|00003a00| 63 6f 6d 6d 61 6e 64 73 | 2c 20 73 63 72 69 70 74 |commands|, script|
|00003a10| 69 6e 67 20 61 64 64 69 | 74 69 6f 6e 20 63 6f 6d |ing addi|tion com|
|00003a20| 6d 61 6e 64 73 20 61 6c | 77 61 79 73 20 77 6f 72 |mands al|ways wor|
|00003a30| 6b 20 74 68 65 20 73 61 | 6d 65 20 77 61 79 20 72 |k the sa|me way r|
|00003a40| 65 67 61 72 64 6c 65 73 | 73 20 6f 66 20 74 68 65 |egardles|s of the|
|00003a50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|00003a60| 77 68 69 63 68 20 74 68 | 65 79 20 61 72 65 20 73 |which th|ey are s|
|00003a70| 65 6e 74 2e 0d 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ent..For| example|
|00003a80| 2c 20 74 68 65 20 73 63 | 72 69 70 74 69 6e 67 20 |, the sc|ripting |
|00003a90| 61 64 64 69 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |addition| command|
|00003aa0| 20 44 69 73 70 6c 61 79 | 20 44 69 61 6c 6f 67 20 | Display| Dialog |
|00003ab0| 64 69 73 70 6c 61 79 73 | 20 61 20 64 69 61 6c 6f |displays| a dialo|
|00003ac0| 67 20 62 6f 78 20 74 68 | 61 74 20 63 61 6e 20 69 |g box th|at can i|
|00003ad0| 6e 63 6c 75 64 65 20 74 | 65 78 74 2c 20 6f 6e 65 |nclude t|ext, one|
|00003ae0| 20 6f 72 20 6d 6f 72 65 | 20 62 75 74 74 6f 6e 73 | or more| buttons|
|00003af0| 2c 20 61 6e 20 69 63 6f | 6e 2c 20 61 6e 64 20 61 |, an ico|n, and a|
|00003b00| 20 66 69 65 6c 64 20 69 | 6e 20 77 68 69 63 68 20 | field i|n which |
|00003b10| 74 68 65 20 75 73 65 72 | 20 63 61 6e 20 74 79 70 |the user| can typ|
|00003b20| 65 20 74 65 78 74 2e 20 | 49 6e 20 74 68 65 20 73 |e text. |In the s|
|00003b30| 63 72 69 70 74 20 74 68 | 61 74 20 66 6f 6c 6c 6f |cript th|at follo|
|00003b40| 77 73 2c 20 74 68 65 20 | 74 61 72 67 65 74 20 6f |ws, the |target o|
|00003b50| 66 20 74 68 65 20 44 69 | 73 70 6c 61 79 20 44 69 |f the Di|splay Di|
|00003b60| 61 6c 6f 67 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |alog com|mand is |
|00003b70| 74 68 65 20 53 63 72 69 | 70 74 61 62 6c 65 20 54 |the Scri|ptable T|
|00003b80| 65 78 74 20 45 64 69 74 | 6f 72 20 61 70 70 6c 69 |ext Edit|or appli|
|00003b90| 63 61 74 69 6f 6e 2e 20 | 57 68 65 6e 20 74 68 65 |cation. |When the|
|00003ba0| 20 73 63 72 69 70 74 20 | 72 75 6e 73 2c 20 74 68 | script |runs, th|
|00003bb0| 65 20 53 63 72 69 70 74 | 61 62 6c 65 20 54 65 78 |e Script|able Tex|
|00003bc0| 74 20 45 64 69 74 6f 72 | 20 62 65 63 6f 6d 65 73 |t Editor| becomes|
|00003bd0| 20 74 68 65 20 66 72 6f | 6e 74 6d 6f 73 74 20 61 | the fro|ntmost a|
|00003be0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 28 74 68 61 74 |pplicati|on (that|
|00003bf0| 20 69 73 2c 20 69 74 73 | 20 6d 65 6e 75 73 20 62 | is, its| menus b|
|00003c00| 65 63 6f 6d 65 20 76 69 | 73 69 62 6c 65 20 61 6e |ecome vi|sible an|
|00003c10| 64 20 69 74 73 20 77 69 | 6e 64 6f 77 73 20 62 65 |d its wi|ndows be|
|00003c20| 63 6f 6d 65 20 74 68 65 | 20 66 72 6f 6e 74 6d 6f |come the| frontmo|
|00003c30| 73 74 20 77 69 6e 64 6f | 77 73 20 6f 6e 20 74 68 |st windo|ws on th|
|00003c40| 65 20 73 63 72 65 65 6e | 29 20 61 6e 64 20 70 61 |e screen|) and pa|
|00003c50| 73 73 65 73 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |sses the| command|
|00003c60| 20 74 6f 20 74 68 65 20 | 73 63 72 69 70 74 69 6e | to the |scriptin|
|00003c70| 67 20 61 64 64 69 74 69 | 6f 6e d5 73 20 68 61 6e |g additi|on.s han|
|00003c80| 64 6c 65 72 20 66 6f 72 | 20 74 68 65 20 44 69 73 |dler for| the Dis|
|00003c90| 70 6c 61 79 20 44 69 61 | 6c 6f 67 20 63 6f 6d 6d |play Dia|log comm|
|00003ca0| 61 6e 64 2c 20 77 68 69 | 63 68 20 64 69 73 70 6c |and, whi|ch displ|
|00003cb0| 61 79 73 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 |ays the |dialog b|
|00003cc0| 6f 78 2e 20 0d 74 65 6c | 6c 20 61 70 70 6c 69 63 |ox. .tel|l applic|
|00003cd0| 61 74 69 6f 6e 20 22 53 | 63 72 69 70 74 61 62 6c |ation "S|criptabl|
|00003ce0| 65 20 54 65 78 74 20 45 | 64 69 74 6f 72 22 0d 09 |e Text E|ditor"..|
|00003cf0| 64 69 73 70 6c 61 79 20 | 64 69 61 6c 6f 67 20 22 |display |dialog "|
|00003d00| 57 68 61 74 d5 73 20 79 | 6f 75 72 20 6e 61 6d 65 |What.s y|our name|
|00003d10| 3f 22 20 64 65 66 61 75 | 6c 74 20 61 6e 73 77 65 |?" defau|lt answe|
|00003d20| 72 20 22 22 0d 65 6e 64 | 20 74 65 6c 6c 0d 49 6e |r "".end| tell.In|
|00003d30| 20 74 68 65 20 6e 65 78 | 74 20 65 78 61 6d 70 6c | the nex|t exampl|
|00003d40| 65 2c 20 74 68 65 20 44 | 69 73 70 6c 61 79 20 44 |e, the D|isplay D|
|00003d50| 69 61 6c 6f 67 20 63 6f | 6d 6d 61 6e 64 20 69 73 |ialog co|mmand is|
|00003d60| 20 6e 6f 74 20 65 6e 63 | 6c 6f 73 65 64 20 69 6e | not enc|losed in|
|00003d70| 20 61 20 54 65 6c 6c 20 | 73 74 61 74 65 6d 65 6e | a Tell |statemen|
|00003d80| 74 2c 20 6e 6f 72 20 64 | 6f 65 73 20 69 74 20 68 |t, nor d|oes it h|
|00003d90| 61 76 65 20 61 20 64 69 | 72 65 63 74 20 70 61 72 |ave a di|rect par|
|00003da0| 61 6d 65 74 65 72 2c 20 | 73 6f 20 69 74 73 20 74 |ameter, |so its t|
|00003db0| 61 72 67 65 74 20 69 73 | 20 74 68 65 20 53 63 72 |arget is| the Scr|
|00003dc0| 69 70 74 20 45 64 69 74 | 6f 72 20 28 6f 72 20 77 |ipt Edit|or (or w|
|00003dd0| 68 61 74 65 76 65 72 20 | 61 70 70 6c 69 63 61 74 |hatever |applicat|
|00003de0| 69 6f 6e 20 72 75 6e 73 | 20 74 68 65 20 73 63 72 |ion runs| the scr|
|00003df0| 69 70 74 29 2e 20 57 68 | 65 6e 20 79 6f 75 20 72 |ipt). Wh|en you r|
|00003e00| 75 6e 20 74 68 65 20 73 | 63 72 69 70 74 2c 20 74 |un the s|cript, t|
|00003e10| 68 65 20 53 63 72 69 70 | 74 20 45 64 69 74 6f 72 |he Scrip|t Editor|
|00003e20| 20 70 61 73 73 65 73 20 | 74 68 65 20 63 6f 6d 6d | passes |the comm|
|00003e30| 61 6e 64 20 74 6f 20 74 | 68 65 20 73 63 72 69 70 |and to t|he scrip|
|00003e40| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e d5 73 20 |ting add|ition.s |
|00003e50| 68 61 6e 64 6c 65 72 20 | 66 6f 72 20 74 68 65 20 |handler |for the |
|00003e60| 44 69 73 70 6c 61 79 20 | 44 69 61 6c 6f 67 20 63 |Display |Dialog c|
|00003e70| 6f 6d 6d 61 6e 64 2c 20 | 77 68 69 63 68 20 64 69 |ommand, |which di|
|00003e80| 73 70 6c 61 79 73 20 74 | 68 65 20 64 69 61 6c 6f |splays t|he dialo|
|00003e90| 67 20 62 6f 78 20 69 6e | 20 74 68 65 20 53 63 72 |g box in| the Scr|
|00003ea0| 69 70 74 20 45 64 69 74 | 6f 72 d5 73 20 6c 61 79 |ipt Edit|or.s lay|
|00003eb0| 65 72 20 28 74 68 61 74 | 20 69 73 2c 20 69 6e 20 |er (that| is, in |
|00003ec0| 66 72 6f 6e 74 20 6f 66 | 20 61 6e 79 20 6f 74 68 |front of| any oth|
|00003ed0| 65 72 20 53 63 72 69 70 | 74 20 45 64 69 74 6f 72 |er Scrip|t Editor|
|00003ee0| 20 77 69 6e 64 6f 77 73 | 20 74 68 61 74 20 6d 61 | windows| that ma|
|00003ef0| 79 20 62 65 20 6f 70 65 | 6e 29 20 77 68 69 6c 65 |y be ope|n) while|
|00003f00| 20 74 68 65 20 53 63 72 | 69 70 74 20 45 64 69 74 | the Scr|ipt Edit|
|00003f10| 6f 72 20 69 73 20 73 74 | 69 6c 6c 20 74 68 65 20 |or is st|ill the |
|00003f20| 61 63 74 69 76 65 20 61 | 70 70 6c 69 63 61 74 69 |active a|pplicati|
|00003f30| 6f 6e 2e 0d 73 65 74 20 | 74 68 65 43 6f 75 6e 74 |on..set |theCount|
|00003f40| 20 74 6f 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 6f | to numb|er of wo|
|00003f50| 72 64 73 20 69 6e 20 66 | 72 6f 6e 74 20 64 6f 63 |rds in f|ront doc|
|00003f60| 75 6d 65 6e 74 20 6f 66 | 20 d8 0d 09 61 70 70 20 |ument of| ...app |
|00003f70| 22 53 63 72 69 70 74 61 | 62 6c 65 20 54 65 78 74 |"Scripta|ble Text|
|00003f80| 20 45 64 69 74 6f 72 22 | 0d 69 66 20 74 68 65 43 | Editor"|.if theC|
|00003f90| 6f 75 6e 74 20 3e 20 35 | 30 30 20 74 68 65 6e 0d |ount > 5|00 then.|
|00003fa0| 09 64 69 73 70 6c 61 79 | 20 64 69 61 6c 6f 67 20 |.display| dialog |
|00003fb0| 22 59 6f 75 20 68 61 76 | 65 20 65 78 63 65 65 64 |"You hav|e exceed|
|00003fc0| 65 64 20 79 6f 75 72 20 | 77 6f 72 64 20 6c 69 6d |ed your |word lim|
|00003fd0| 69 74 2e 22 0d 65 6e 64 | 0d 59 6f 75 20 63 61 6e |it.".end|.You can|
|00003fe0| 20 73 65 6e 64 20 73 63 | 72 69 70 74 69 6e 67 20 | send sc|ripting |
|00003ff0| 61 64 64 69 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |addition| command|
|00004000| 73 20 74 6f 20 61 20 74 | 61 72 67 65 74 20 6f 6e |s to a t|arget on|
|00004010| 20 61 6e 79 20 72 65 6d | 6f 74 65 20 63 6f 6d 70 | any rem|ote comp|
|00004020| 75 74 65 72 20 77 68 6f | 73 65 20 53 63 72 69 70 |uter who|se Scrip|
|00004030| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 73 20 66 |ting Add|itions f|
|00004040| 6f 6c 64 65 72 20 63 6f | 6e 74 61 69 6e 73 20 74 |older co|ntains t|
|00004050| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 73 |he appro|priate s|
|00004060| 63 72 69 70 74 69 6e 67 | 20 61 64 64 69 74 69 6f |cripting| additio|
|00004070| 6e 20 66 69 6c 65 2e 20 | 54 68 69 73 20 69 73 20 |n file. |This is |
|00004080| 74 72 75 65 20 6e 6f 20 | 6d 61 74 74 65 72 20 77 |true no |matter w|
|00004090| 68 69 63 68 20 73 63 72 | 69 70 74 69 6e 67 20 61 |hich scr|ipting a|
|000040a0| 64 64 69 74 69 6f 6e 73 | 20 61 72 65 20 61 76 61 |dditions| are ava|
|000040b0| 69 6c 61 62 6c 65 20 74 | 6f 20 74 68 65 20 63 6f |ilable t|o the co|
|000040c0| 6d 70 75 74 65 72 20 66 | 72 6f 6d 20 77 68 69 63 |mputer f|rom whic|
|000040d0| 68 20 79 6f 75 20 61 72 | 65 20 73 65 6e 64 69 6e |h you ar|e sendin|
|000040e0| 67 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 2e 20 46 |g the co|mmand. F|
|000040f0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 79 6f 75 20 |or examp|le, you |
|00004100| 63 61 6e 20 73 65 6e 64 | 20 74 68 65 20 44 69 73 |can send| the Dis|
|00004110| 70 6c 61 79 20 44 69 61 | 6c 6f 67 20 63 6f 6d 6d |play Dia|log comm|
|00004120| 61 6e 64 20 74 6f 20 61 | 6e 79 20 61 70 70 6c 69 |and to a|ny appli|
|00004130| 63 61 74 69 6f 6e 20 6f | 6e 20 61 20 72 65 6d 6f |cation o|n a remo|
|00004140| 74 65 20 63 6f 6d 70 75 | 74 65 72 20 77 68 6f 73 |te compu|ter whos|
|00004150| 65 20 53 63 72 69 70 74 | 69 6e 67 20 41 64 64 69 |e Script|ing Addi|
|00004160| 74 69 6f 6e 73 20 66 6f | 6c 64 65 72 20 63 6f 6e |tions fo|lder con|
|00004170| 74 61 69 6e 73 20 74 68 | 65 20 44 69 73 70 6c 61 |tains th|e Displa|
|00004180| 79 20 44 69 61 6c 6f 67 | 20 73 63 72 69 70 74 69 |y Dialog| scripti|
|00004190| 6e 67 20 61 64 64 69 74 | 69 6f 6e 2c 20 65 76 65 |ng addit|ion, eve|
|000041a0| 6e 20 69 66 20 74 68 65 | 20 53 63 72 69 70 74 69 |n if the| Scripti|
|000041b0| 6e 67 20 41 64 64 69 74 | 69 6f 6e 73 20 66 6f 6c |ng Addit|ions fol|
|000041c0| 64 65 72 20 6f 6e 20 79 | 6f 75 72 20 63 6f 6d 70 |der on y|our comp|
|000041d0| 75 74 65 72 20 64 6f 65 | 73 6e d5 74 20 63 6f 6e |uter doe|sn.t con|
|000041e0| 74 61 69 6e 20 74 68 61 | 74 20 66 69 6c 65 2e 0d |tain tha|t file..|
|000041f0| 45 61 63 68 20 73 63 72 | 69 70 74 69 6e 67 20 61 |Each scr|ipting a|
|00004200| 64 64 69 74 69 6f 6e 20 | 74 68 61 74 20 63 6f 6e |ddition |that con|
|00004210| 74 61 69 6e 73 20 63 6f | 6d 6d 61 6e 64 20 68 61 |tains co|mmand ha|
|00004220| 6e 64 6c 65 72 73 20 68 | 61 73 20 69 74 73 20 6f |ndlers h|as its o|
|00004230| 77 6e 20 64 69 63 74 69 | 6f 6e 61 72 79 2c 20 77 |wn dicti|onary, w|
|00004240| 68 69 63 68 20 6c 69 73 | 74 73 20 74 68 65 20 72 |hich lis|ts the r|
|00004250| 65 73 65 72 76 65 64 20 | 77 6f 72 64 73 d1 69 6e |eserved |words.in|
|00004260| 63 6c 75 64 69 6e 67 20 | 74 68 65 20 63 6f 6d 6d |cluding |the comm|
|00004270| 61 6e 64 20 0d 6e 61 6d | 65 73 2c 20 70 61 72 61 |and .nam|es, para|
|00004280| 6d 65 74 65 72 20 6c 61 | 62 65 6c 73 2c 20 61 6e |meter la|bels, an|
|00004290| 64 20 69 6e 20 73 6f 6d | 65 20 63 61 73 65 73 20 |d in som|e cases |
|000042a0| 6f 62 6a 65 63 74 20 6e | 61 6d 65 73 d1 75 73 65 |object n|ames.use|
|000042b0| 64 20 74 6f 20 69 6e 76 | 6f 6b 65 20 0d 74 68 65 |d to inv|oke .the|
|000042c0| 20 63 6f 6d 6d 61 6e 64 | 73 20 73 75 70 70 6f 72 | command|s suppor|
|000042d0| 74 65 64 20 62 79 20 74 | 68 65 20 73 63 72 69 70 |ted by t|he scrip|
|000042e0| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 2e 20 49 |ting add|ition. I|
|000042f0| 66 20 61 20 73 63 72 69 | 70 74 69 6e 67 20 61 64 |f a scri|pting ad|
|00004300| 64 69 74 69 6f 6e 20 64 | 69 63 74 69 6f 6e 61 72 |dition d|ictionar|
|00004310| 79 20 69 6e 63 6c 75 64 | 65 73 20 77 6f 72 64 73 |y includ|es words|
|00004320| 20 74 68 61 74 20 61 72 | 65 20 61 6c 73 6f 20 70 | that ar|e also p|
|00004330| 61 72 74 20 6f 66 20 61 | 6e 20 61 70 70 6c 69 63 |art of a|n applic|
|00004340| 61 74 69 6f 6e 20 64 69 | 63 74 69 6f 6e 61 72 79 |ation di|ctionary|
|00004350| 2c 20 0d 74 68 65 6e 20 | 79 6f 75 20 63 61 6e 6e |, .then |you cann|
|00004360| 6f 74 20 75 73 65 20 74 | 68 6f 73 65 20 77 6f 72 |ot use t|hose wor|
|00004370| 64 73 20 77 69 74 68 69 | 6e 20 54 65 6c 6c 20 73 |ds withi|n Tell s|
|00004380| 74 61 74 65 6d 65 6e 74 | 73 20 74 6f 20 74 68 61 |tatement|s to tha|
|00004390| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 20 |t applic|ation. |
|000043a0| 20 0d 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 | .For ex|ample, t|
|000043b0| 68 65 20 4f 66 66 73 65 | 74 20 63 6f 6d 6d 61 6e |he Offse|t comman|
|000043c0| 64 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |d provid|ed by th|
|000043d0| 65 20 53 74 72 69 6e 67 | 20 43 6f 6d 6d 61 6e 64 |e String| Command|
|000043e0| 73 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |s script|ing addi|
|000043f0| 74 69 6f 6e 20 72 65 70 | 6f 72 74 73 20 74 68 65 |tion rep|orts the|
|00004400| 20 6f 66 66 73 65 74 2c | 20 69 6e 20 63 68 61 72 | offset,| in char|
|00004410| 61 63 74 65 72 73 2c 20 | 6f 66 20 61 20 73 74 72 |acters, |of a str|
|00004420| 69 6e 67 20 77 69 74 68 | 69 6e 20 61 6e 6f 74 68 |ing with|in anoth|
|00004430| 65 72 20 73 74 72 69 6e | 67 2e 20 4f 66 66 73 65 |er strin|g. Offse|
|00004440| 74 20 69 73 20 61 6c 73 | 6f 20 61 20 70 72 6f 70 |t is als|o a prop|
|00004450| 65 72 74 79 20 6f 66 20 | 73 65 76 65 72 61 6c 20 |erty of |several |
|00004460| 53 63 72 69 70 74 61 62 | 6c 65 20 54 65 78 74 20 |Scriptab|le Text |
|00004470| 45 64 69 74 6f 72 20 6f | 62 6a 65 63 74 73 20 61 |Editor o|bjects a|
|00004480| 6e 64 20 69 73 20 74 68 | 75 73 20 61 20 77 6f 72 |nd is th|us a wor|
|00004490| 64 20 69 6e 20 74 68 65 | 20 53 63 72 69 70 74 61 |d in the| Scripta|
|000044a0| 62 6c 65 20 54 65 78 74 | 20 45 64 69 74 6f 72 20 |ble Text| Editor |
|000044b0| 64 69 63 74 69 6f 6e 61 | 72 79 2e 20 54 68 65 72 |dictiona|ry. Ther|
|000044c0| 65 66 6f 72 65 2c 20 79 | 6f 75 20 63 61 6e 6e 6f |efore, y|ou canno|
|000044d0| 74 20 75 73 65 20 4f 66 | 66 73 65 74 20 61 73 20 |t use Of|fset as |
|000044e0| 61 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |a script|ing addi|
|000044f0| 74 69 6f 6e 20 63 6f 6d | 6d 61 6e 64 20 77 69 74 |tion com|mand wit|
|00004500| 68 69 6e 20 54 65 6c 6c | 20 73 74 61 74 65 6d 65 |hin Tell| stateme|
|00004510| 6e 74 73 20 74 6f 20 74 | 68 65 20 53 63 72 69 70 |nts to t|he Scrip|
|00004520| 74 61 62 6c 65 20 54 65 | 78 74 20 45 64 69 74 6f |table Te|xt Edito|
|00004530| 72 2e 20 49 66 20 79 6f | 75 20 64 6f 2c 20 79 6f |r. If yo|u do, yo|
|00004540| 75 d5 6c 6c 20 67 65 74 | 20 61 20 73 79 6e 74 61 |u.ll get| a synta|
|00004550| 78 20 65 72 72 6f 72 2c | 20 62 65 63 61 75 73 65 |x error,| because|
|00004560| 20 74 68 65 20 53 63 72 | 69 70 74 61 62 6c 65 20 | the Scr|iptable |
|00004570| 54 65 78 74 20 45 64 69 | 74 6f 72 20 74 72 65 61 |Text Edi|tor trea|
|00004580| 74 73 20 74 68 65 20 77 | 6f 72 64 20 4f 66 66 73 |ts the w|ord Offs|
|00004590| 65 74 20 61 73 20 61 20 | 70 72 6f 70 65 72 74 79 |et as a |property|
|000045a0| 20 6f 66 20 61 20 74 65 | 78 74 20 6f 62 6a 65 63 | of a te|xt objec|
|000045b0| 74 2e 20 0d 49 66 20 79 | 6f 75 20 73 70 65 63 69 |t. .If y|ou speci|
|000045c0| 66 79 20 61 20 73 63 72 | 69 70 74 20 6f 62 6a 65 |fy a scr|ipt obje|
|000045d0| 63 74 20 61 73 20 74 68 | 65 20 74 61 72 67 65 74 |ct as th|e target|
|000045e0| 20 6f 66 20 61 20 73 63 | 72 69 70 74 69 6e 67 20 | of a sc|ripting |
|000045f0| 61 64 64 69 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |addition| command|
|00004600| 2c 20 0d 74 68 65 20 73 | 63 72 69 70 74 20 6f 62 |, .the s|cript ob|
|00004610| 6a 65 63 74 20 65 69 74 | 68 65 72 20 68 61 6e 64 |ject eit|her hand|
|00004620| 6c 65 73 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |les the |command |
|00004630| 69 74 73 65 6c 66 20 28 | 70 6f 74 65 6e 74 69 61 |itself (|potentia|
|00004640| 6c 6c 79 20 6d 6f 64 69 | 66 79 69 6e 67 20 69 74 |lly modi|fying it|
|00004650| 29 20 0d 6f 72 20 75 73 | 65 73 20 61 20 43 6f 6e |) .or us|es a Con|
|00004660| 74 69 6e 75 65 20 73 74 | 61 74 65 6d 65 6e 74 20 |tinue st|atement |
|00004670| 74 6f 20 70 61 73 73 20 | 74 68 65 20 63 6f 6d 6d |to pass |the comm|
|00004680| 61 6e 64 20 74 6f 20 74 | 68 65 20 64 65 66 61 75 |and to t|he defau|
|00004690| 6c 74 20 74 61 72 67 65 | 74 20 61 70 70 6c 69 63 |lt targe|t applic|
|000046a0| 61 74 69 6f 6e 2e 20 46 | 6f 72 20 6d 6f 72 65 20 |ation. F|or more |
|000046b0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|000046c0| 74 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |t script|ing addi|
|000046d0| 74 69 6f 6e 20 63 6f 6d | 6d 61 6e 64 73 2c 20 73 |tion com|mands, s|
|000046e0| 63 72 69 70 74 20 6f 62 | 6a 65 63 74 73 2c 20 61 |cript ob|jects, a|
|000046f0| 6e 64 20 74 68 65 20 43 | 6f 6e 74 69 6e 75 65 20 |nd the C|ontinue |
|00004700| 73 74 61 74 65 6d 65 6e | 74 2c 20 73 65 65 20 43 |statemen|t, see C|
|00004710| 68 61 70 74 65 72 20 39 | 2c 20 d2 53 63 72 69 70 |hapter 9|, .Scrip|
|00004720| 74 20 4f 62 6a 65 63 74 | 73 2c d3 20 6f 66 20 74 |t Object|s,. of t|
|00004730| 68 65 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 4c |he Apple|Script L|
|00004740| 61 6e 67 75 61 67 65 20 | 47 75 69 64 65 2e 20 20 |anguage |Guide. |
|00004750| 20 0d 53 63 72 69 70 74 | 69 6e 67 20 41 64 64 69 | .Script|ing Addi|
|00004760| 74 69 6f 6e 20 43 6f 6d | 6d 61 6e 64 73 0d 0d 54 |tion Com|mands..T|
|00004770| 68 69 73 20 63 68 61 70 | 74 65 72 20 64 65 73 63 |his chap|ter desc|
|00004780| 72 69 62 65 73 20 77 68 | 61 74 20 74 68 65 20 73 |ribes wh|at the s|
|00004790| 74 61 6e 64 61 72 64 20 | 41 70 70 6c 65 53 63 72 |tandard |AppleScr|
|000047a0| 69 70 74 20 73 63 72 69 | 70 74 69 6e 67 20 61 64 |ipt scri|pting ad|
|000047b0| 64 69 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 73 20 |dition c|ommands |
|000047c0| 64 6f 20 61 6e 64 20 68 | 6f 77 20 74 6f 20 75 73 |do and h|ow to us|
|000047d0| 65 20 74 68 65 6d 20 69 | 6e 20 73 63 72 69 70 74 |e them i|n script|
|000047e0| 73 2e 20 54 68 65 20 66 | 69 72 73 74 20 74 77 6f |s. The f|irst two|
|000047f0| 20 73 65 63 74 69 6f 6e | 73 20 73 75 6d 6d 61 72 | section|s summar|
|00004800| 69 7a 65 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ize the |standard|
|00004810| 20 73 63 72 69 70 74 69 | 6e 67 20 61 64 64 69 74 | scripti|ng addit|
|00004820| 69 6f 6e 20 66 69 6c 65 | 73 20 61 6e 64 20 74 68 |ion file|s and th|
|00004830| 65 20 63 6f 6d 6d 61 6e | 64 73 20 74 68 65 79 20 |e comman|ds they |
|00004840| 70 72 6f 76 69 64 65 2e | 20 54 68 65 20 6c 61 73 |provide.| The las|
|00004850| 74 20 73 65 63 74 69 6f | 6e 20 64 65 73 63 72 69 |t sectio|n descri|
|00004860| 62 65 73 20 69 6e 20 6d | 6f 72 65 20 64 65 74 61 |bes in m|ore deta|
|00004870| 69 6c 20 68 6f 77 20 74 | 6f 20 75 73 65 20 74 68 |il how t|o use th|
|00004880| 65 20 63 6f 6d 6d 61 6e | 64 73 20 70 72 6f 76 69 |e comman|ds provi|
|00004890| 64 65 64 20 62 79 20 74 | 68 65 20 52 65 61 64 2f |ded by t|he Read/|
|000048a0| 57 72 69 74 65 20 73 63 | 72 69 70 74 69 6e 67 20 |Write sc|ripting |
|000048b0| 61 64 64 69 74 69 6f 6e | 2c 20 77 68 6f 73 65 20 |addition|, whose |
|000048c0| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 75 73 75 |commands| are usu|
|000048d0| 61 6c 6c 79 20 75 73 65 | 64 20 74 6f 67 65 74 68 |ally use|d togeth|
|000048e0| 65 72 2e 0d 0d 53 63 72 | 69 70 74 69 6e 67 20 41 |er...Scr|ipting A|
|000048f0| 64 64 69 74 69 6f 6e 20 | 46 69 6c 65 73 0d 0d 54 |ddition |Files..T|
|00004900| 68 65 20 73 74 61 6e 64 | 61 72 64 20 73 63 72 69 |he stand|ard scri|
|00004910| 70 74 69 6e 67 20 61 64 | 64 69 74 69 6f 6e 20 66 |pting ad|dition f|
|00004920| 69 6c 65 73 20 61 72 65 | 20 63 6f 70 69 65 64 20 |iles are| copied |
|00004930| 69 6e 74 6f 20 74 68 65 | 20 53 63 72 69 70 74 69 |into the| Scripti|
|00004940| 6e 67 20 41 64 64 69 74 | 69 6f 6e 73 20 66 6f 6c |ng Addit|ions fol|
|00004950| 64 65 72 20 28 6c 6f 63 | 61 74 65 64 20 69 6e 20 |der (loc|ated in |
|00004960| 74 68 65 20 45 78 74 65 | 6e 73 69 6f 6e 73 20 66 |the Exte|nsions f|
|00004970| 6f 6c 64 65 72 20 69 6e | 20 74 68 65 20 53 79 73 |older in| the Sys|
|00004980| 74 65 6d 20 46 6f 6c 64 | 65 72 29 20 77 68 65 6e |tem Fold|er) when|
|00004990| 20 79 6f 75 20 69 6e 73 | 74 61 6c 6c 20 41 70 70 | you ins|tall App|
|000049a0| 6c 65 53 63 72 69 70 74 | 20 61 63 63 6f 72 64 69 |leScript| accordi|
|000049b0| 6e 67 20 74 6f 20 74 68 | 65 20 69 6e 73 74 72 75 |ng to th|e instru|
|000049c0| 63 74 69 6f 6e 73 20 69 | 6e 20 47 65 74 74 69 6e |ctions i|n Gettin|
|000049d0| 67 20 53 74 61 72 74 65 | 64 20 57 69 74 68 20 41 |g Starte|d With A|
|000049e0| 70 70 6c 65 53 63 72 69 | 70 74 2e 20 45 61 63 68 |ppleScri|pt. Each|
|000049f0| 20 66 69 6c 65 20 70 72 | 6f 76 69 64 65 73 20 6f | file pr|ovides o|
|00004a00| 6e 65 20 6f 72 20 6d 6f | 72 65 20 63 6f 6d 6d 61 |ne or mo|re comma|
|00004a10| 6e 64 73 2e 20 54 61 62 | 6c 65 20 32 2d 31 20 73 |nds. Tab|le 2-1 s|
|00004a20| 75 6d 6d 61 72 69 7a 65 | 73 20 74 68 65 20 63 6f |ummarize|s the co|
|00004a30| 6d 6d 61 6e 64 73 20 70 | 72 6f 76 69 64 65 64 20 |mmands p|rovided |
|00004a40| 62 79 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |by the s|tandard |
|00004a50| 73 63 72 69 70 74 69 6e | 67 20 61 64 64 69 74 69 |scriptin|g additi|
|00004a60| 6f 6e 73 2e 0d 45 61 63 | 68 20 73 63 72 69 70 74 |ons..Eac|h script|
|00004a70| 69 6e 67 20 61 64 64 69 | 74 69 6f 6e 20 74 68 61 |ing addi|tion tha|
|00004a80| 74 20 70 72 6f 76 69 64 | 65 73 20 63 6f 6d 6d 61 |t provid|es comma|
|00004a90| 6e 64 73 20 69 6e 63 6c | 75 64 65 73 20 69 74 73 |nds incl|udes its|
|00004aa0| 20 6f 77 6e 20 64 69 63 | 74 69 6f 6e 61 72 79 20 | own dic|tionary |
|00004ab0| 6f 66 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 73 20 |of the c|ommands |
|00004ac0| 61 6e 64 20 6f 62 6a 65 | 63 74 20 63 6c 61 73 73 |and obje|ct class|
|00004ad0| 65 73 20 69 74 20 64 65 | 66 69 6e 65 73 2e 20 59 |es it de|fines. Y|
|00004ae0| 6f 75 20 63 61 6e 20 6f | 70 65 6e 20 61 20 73 63 |ou can o|pen a sc|
|00004af0| 72 69 70 74 69 6e 67 20 | 61 64 64 69 74 69 6f 6e |ripting |addition|
|00004b00| d5 73 20 64 69 63 74 69 | 6f 6e 61 72 79 20 69 6e |.s dicti|onary in|
|00004b10| 20 6d 75 63 68 20 74 68 | 65 20 73 61 6d 65 20 77 | much th|e same w|
|00004b20| 61 79 20 79 6f 75 20 6f | 70 65 6e 20 61 6e 20 61 |ay you o|pen an a|
|00004b30| 70 70 6c 69 63 61 74 69 | 6f 6e d5 73 20 64 69 63 |pplicati|on.s dic|
|00004b40| 74 69 6f 6e 61 72 79 d1 | 0d 62 79 20 73 65 6c 65 |tionary.|.by sele|
|00004b50| 63 74 69 6e 67 20 74 68 | 65 20 73 63 72 69 70 74 |cting th|e script|
|00004b60| 69 6e 67 20 61 64 64 69 | 74 69 6f 6e d5 73 20 69 |ing addi|tion.s i|
|00004b70| 63 6f 6e 20 69 6e 20 74 | 68 65 20 53 63 72 69 70 |con in t|he Scrip|
|00004b80| 74 69 6e 67 20 41 64 64 | 69 74 69 6f 6e 73 20 66 |ting Add|itions f|
|00004b90| 6f 6c 64 65 72 2c 20 64 | 72 61 67 67 69 6e 67 20 |older, d|ragging |
|00004ba0| 74 68 65 20 69 63 6f 6e | 20 6f 76 65 72 20 74 68 |the icon| over th|
|00004bb0| 65 20 53 63 72 69 70 74 | 20 45 64 69 74 6f 72 d5 |e Script| Editor.|
|00004bc0| 73 20 69 63 6f 6e 2c 20 | 61 6e 64 20 72 65 6c 65 |s icon, |and rele|
|00004bd0| 61 73 69 6e 67 20 74 68 | 65 20 6d 6f 75 73 65 20 |asing th|e mouse |
|00004be0| 62 75 74 74 6f 6e 2e 0d | 46 6f 72 20 69 6e 66 6f |button..|For info|
|00004bf0| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 63 6f |rmation |about co|
|00004c00| 6d 6d 61 6e 64 73 20 70 | 72 6f 76 69 64 65 64 20 |mmands p|rovided |
|00004c10| 62 79 20 73 63 72 69 70 | 74 69 6e 67 20 61 64 64 |by scrip|ting add|
|00004c20| 69 74 69 6f 6e 73 20 6f | 74 68 65 72 20 74 68 61 |itions o|ther tha|
|00004c30| 6e 20 74 68 6f 73 65 20 | 64 65 73 63 72 69 62 65 |n those |describe|
|00004c40| 64 20 69 6e 20 74 68 69 | 73 20 6d 61 6e 75 61 6c |d in thi|s manual|
|00004c50| 2c 20 73 65 65 20 74 68 | 65 20 64 6f 63 75 6d 65 |, see th|e docume|
|00004c60| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 74 68 6f 73 |ntation |for thos|
|00004c70| 65 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |e script|ing addi|
|00004c80| 74 69 6f 6e 73 2e 20 46 | 6f 72 20 69 6e 66 6f 72 |tions. F|or infor|
|00004c90| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 75 73 69 |mation a|bout usi|
|00004ca0| 6e 67 20 63 6f 6d 6d 61 | 6e 64 20 64 65 66 69 6e |ng comma|nd defin|
|00004cb0| 69 74 69 6f 6e 73 20 61 | 6e 64 20 66 6f 72 20 64 |itions a|nd for d|
|00004cc0| 65 66 69 6e 69 74 69 6f | 6e 73 20 6f 66 20 41 70 |efinitio|ns of Ap|
|00004cd0| 70 6c 65 53 63 72 69 70 | 74 20 63 6f 6d 6d 61 6e |pleScrip|t comman|
|00004ce0| 64 73 20 61 6e 64 20 73 | 74 61 6e 64 61 72 64 20 |ds and s|tandard |
|00004cf0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 6f 6d 6d |applicat|ion comm|
|00004d00| 61 6e 64 73 2c 20 73 65 | 65 20 74 68 65 20 41 70 |ands, se|e the Ap|
|00004d10| 70 6c 65 53 63 72 69 70 | 74 20 4c 61 6e 67 75 61 |pleScrip|t Langua|
|00004d20| 67 65 20 47 75 69 64 65 | 2e 0d 54 61 62 6c 65 20 |ge Guide|..Table |
|00004d30| 32 2d 31 09 53 63 72 69 | 70 74 69 6e 67 20 61 64 |2-1.Scri|pting ad|
|00004d40| 64 69 74 69 6f 6e 20 63 | 6f 6d 6d 61 6e 64 73 20 |dition c|ommands |
|00004d50| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 69 |describe|d in thi|
|00004d60| 73 20 67 75 69 64 65 20 | 28 63 6f 6e 74 69 6e 75 |s guide |(continu|
|00004d70| 65 64 29 0d 4e 61 6d 65 | 20 6f 66 20 0d 73 63 72 |ed).Name| of .scr|
|00004d80| 69 70 74 69 6e 67 20 61 | 64 64 69 74 69 6f 6e 20 |ipting a|ddition |
|00004d90| 66 69 6c 65 09 4e 61 6d | 65 20 6f 66 20 63 6f 6d |file.Nam|e of com|
|00004da0| 6d 61 6e 64 09 44 65 73 | 63 72 69 70 74 69 6f 6e |mand.Des|cription|
|00004db0| 20 6f 66 20 63 6f 6d 6d | 61 6e 64 09 0d 4e 6f 74 | of comm|and..Not|
|00004dc0| 20 61 20 73 65 70 61 72 | 61 74 65 20 66 69 6c 65 | a separ|ate file|
|00004dd0| 3b 20 70 61 72 74 20 6f | 66 20 41 70 70 6c 65 53 |; part o|f AppleS|
|00004de0| 63 72 69 70 74 20 65 78 | 74 65 6e 73 69 6f 6e 09 |cript ex|tension.|
|00004df0| 41 63 74 69 76 61 74 65 | 09 41 63 74 69 76 61 74 |Activate|.Activat|
|00004e00| 65 73 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |es an ap|plicatio|
|00004e10| 6e 2e 09 0d 09 4c 6f 67 | 09 50 6c 61 63 65 73 20 |n....Log|.Places |
|00004e20| 61 20 73 74 72 69 6e 67 | 20 62 65 74 77 65 65 6e |a string| between|
|00004e30| 20 63 6f 6d 6d 65 6e 74 | 20 63 68 61 72 61 63 74 | comment| charact|
|00004e40| 65 72 73 20 69 6e 20 74 | 68 65 20 53 63 72 69 70 |ers in t|he Scrip|
|00004e50| 74 20 45 64 69 74 6f 72 | d5 73 20 0d 45 76 65 6e |t Editor|.s .Even|
|00004e60| 74 20 4c 6f 67 20 57 69 | 6e 64 6f 77 2e 09 0d 09 |t Log Wi|ndow....|
|00004e70| 53 74 61 72 74 20 4c 6f | 67 09 54 75 72 6e 73 20 |Start Lo|g.Turns |
|00004e80| 6c 6f 67 67 69 6e 67 20 | 6f 6e 20 69 6e 20 74 68 |logging |on in th|
|00004e90| 65 20 53 63 72 69 70 74 | 20 45 64 69 74 6f 72 d5 |e Script| Editor.|
|00004ea0| 73 20 45 76 65 6e 74 20 | 4c 6f 67 20 77 69 6e 64 |s Event |Log wind|
|00004eb0| 6f 77 2e 09 0d 09 53 74 | 6f 70 20 4c 6f 67 09 54 |ow....St|op Log.T|
|00004ec0| 75 72 6e 73 20 6c 6f 67 | 67 69 6e 67 20 6f 66 66 |urns log|ging off|
|00004ed0| 20 69 6e 20 74 68 65 20 | 53 63 72 69 70 74 20 45 | in the |Script E|
|00004ee0| 64 69 74 6f 72 d5 73 20 | 45 76 65 6e 74 20 4c 6f |ditor.s |Event Lo|
|00004ef0| 67 20 77 69 6e 64 6f 77 | 2e 09 0d 42 65 65 70 09 |g window|...Beep.|
|00004f00| 42 65 65 70 09 50 6c 61 | 79 73 20 74 68 65 20 61 |Beep.Pla|ys the a|
|00004f10| 6c 65 72 74 20 73 6f 75 | 6e 64 2e 09 0d 43 68 6f |lert sou|nd...Cho|
|00004f20| 6f 73 65 20 41 70 70 6c | 69 63 61 74 69 6f 6e 09 |ose Appl|ication.|
|00004f30| 43 68 6f 6f 73 65 20 41 | 70 70 6c 69 63 61 74 69 |Choose A|pplicati|
|00004f40| 6f 6e 09 41 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |on.Allow|s the us|
|00004f50| 65 72 20 74 6f 20 63 68 | 6f 6f 73 65 20 61 20 72 |er to ch|oose a r|
|00004f60| 75 6e 6e 69 6e 67 20 61 | 70 70 6c 69 63 61 74 69 |unning a|pplicati|
|00004f70| 6f 6e 20 66 72 6f 6d 20 | 61 20 64 69 61 6c 6f 67 |on from |a dialog|
|00004f80| 20 62 6f 78 2e 09 0d 43 | 68 6f 6f 73 65 20 46 69 | box...C|hoose Fi|
|00004f90| 6c 65 09 43 68 6f 6f 73 | 65 20 46 69 6c 65 09 41 |le.Choos|e File.A|
|00004fa0| 6c 6c 6f 77 73 20 74 68 | 65 20 75 73 65 72 20 74 |llows th|e user t|
|00004fb0| 6f 20 63 68 6f 6f 73 65 | 20 61 20 66 69 6c 65 20 |o choose| a file |
|00004fc0| 66 72 6f 6d 20 0d 61 20 | 64 69 61 6c 6f 67 20 62 |from .a |dialog b|
|00004fd0| 6f 78 2e 09 0d 09 43 68 | 6f 6f 73 65 20 46 6f 6c |ox....Ch|oose Fol|
|00004fe0| 64 65 72 09 41 6c 6c 6f | 77 73 20 74 68 65 20 75 |der.Allo|ws the u|
|00004ff0| 73 65 72 20 74 6f 20 63 | 68 6f 6f 73 65 20 61 20 |ser to c|hoose a |
|00005000| 66 6f 6c 64 65 72 20 0d | 6f 72 20 76 6f 6c 75 6d |folder .|or volum|
|00005010| 65 20 66 72 6f 6d 20 61 | 20 64 69 61 6c 6f 67 20 |e from a| dialog |
|00005020| 62 6f 78 2e 09 0d 43 75 | 72 72 65 6e 74 20 44 61 |box...Cu|rrent Da|
|00005030| 74 65 09 43 75 72 72 65 | 6e 74 20 44 61 74 65 09 |te.Curre|nt Date.|
|00005040| 52 65 74 75 72 6e 73 20 | 61 20 64 61 74 65 20 76 |Returns |a date v|
|00005050| 61 6c 75 65 20 74 68 61 | 74 20 72 65 70 72 65 73 |alue tha|t repres|
|00005060| 65 6e 74 73 20 0d 74 68 | 65 20 63 75 72 72 65 6e |ents .th|e curren|
|00005070| 74 20 74 69 6d 65 20 61 | 6e 64 20 64 61 74 65 2e |t time a|nd date.|
|00005080| 09 0d 44 69 73 70 6c 61 | 79 20 44 69 61 6c 6f 67 |..Displa|y Dialog|
|00005090| 09 44 69 73 70 6c 61 79 | 20 44 69 61 6c 6f 67 09 |.Display| Dialog.|
|000050a0| 44 69 73 70 6c 61 79 73 | 20 61 20 64 69 61 6c 6f |Displays| a dialo|
|000050b0| 67 20 62 6f 78 2e 09 0d | 46 69 6c 65 20 43 6f 6d |g box...|File Com|
|000050c0| 6d 61 6e 64 73 09 49 6e | 66 6f 20 46 6f 72 09 47 |mands.In|fo For.G|
|000050d0| 65 74 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ets info|rmation |
|000050e0| 66 6f 72 20 61 20 66 69 | 6c 65 20 6f 72 20 66 6f |for a fi|le or fo|
|000050f0| 6c 64 65 72 2e 09 0d 09 | 4c 69 73 74 20 44 69 73 |lder....|List Dis|
|00005100| 6b 73 09 52 65 74 75 72 | 6e 73 20 61 20 6c 69 73 |ks.Retur|ns a lis|
|00005110| 74 20 6f 66 20 63 75 72 | 72 65 6e 74 6c 79 20 0d |t of cur|rently .|
|00005120| 6d 6f 75 6e 74 65 64 20 | 64 69 73 6b 73 2e 09 0d |mounted |disks...|
|00005130| 09 4c 69 73 74 20 46 6f | 6c 64 65 72 09 4c 69 73 |.List Fo|lder.Lis|
|00005140| 74 73 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |ts the c|ontents |
|00005150| 6f 66 20 61 20 73 70 65 | 63 69 66 69 65 64 20 66 |of a spe|cified f|
|00005160| 6f 6c 64 65 72 2e 09 0d | 09 50 61 74 68 20 54 6f |older...|.Path To|
|00005170| 09 52 65 74 75 72 6e 73 | 20 66 75 6c 6c 20 70 61 |.Returns| full pa|
|00005180| 74 68 6e 61 6d 65 20 74 | 6f 20 73 70 65 63 69 66 |thname t|o specif|
|00005190| 69 65 64 20 66 6f 6c 64 | 65 72 20 6f 72 20 61 70 |ied fold|er or ap|
|000051a0| 70 6c 69 63 61 74 69 6f | 6e 2e 09 0d 0d 63 6f 6e |plicatio|n....con|
|000051b0| 74 69 6e 75 65 64 09 09 | 09 0d 4c 6f 61 64 20 53 |tinued..|..Load S|
|000051c0| 63 72 69 70 74 09 4c 6f | 61 64 20 53 63 72 69 70 |cript.Lo|ad Scrip|
|000051d0| 74 09 4c 6f 61 64 73 20 | 61 20 63 6f 6d 70 69 6c |t.Loads |a compil|
|000051e0| 65 64 20 73 63 72 69 70 | 74 20 69 6e 74 6f 20 74 |ed scrip|t into t|
|000051f0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 63 72 69 70 |he curre|nt scrip|
|00005200| 74 20 61 73 20 61 20 73 | 63 72 69 70 74 20 6f 62 |t as a s|cript ob|
|00005210| 6a 65 63 74 2e 09 0d 4e | 65 77 20 46 69 6c 65 09 |ject...N|ew File.|
|00005220| 4e 65 77 20 46 69 6c 65 | 09 41 6c 6c 6f 77 73 20 |New File|.Allows |
|00005230| 61 20 75 73 65 72 20 74 | 6f 20 63 72 65 61 74 65 |a user t|o create|
|00005240| 20 61 20 6e 65 77 20 66 | 69 6c 65 2e 09 0d 4e 75 | a new f|ile...Nu|
|00005250| 6d 65 72 69 63 73 09 52 | 61 6e 64 6f 6d 20 4e 75 |merics.R|andom Nu|
|00005260| 6d 62 65 72 09 47 65 6e | 65 72 61 74 65 73 20 61 |mber.Gen|erates a|
|00005270| 20 72 61 6e 64 6f 6d 20 | 6e 75 6d 62 65 72 2e 09 | random |number..|
|00005280| 0d 09 52 6f 75 6e 64 09 | 52 6f 75 6e 64 73 20 61 |..Round.|Rounds a|
|00005290| 20 6e 75 6d 62 65 72 20 | 74 6f 20 74 68 65 20 6e | number |to the n|
|000052a0| 65 61 72 65 73 74 20 69 | 6e 74 65 67 65 72 2e 09 |earest i|nteger..|
|000052b0| 0d 52 65 61 64 2f 57 72 | 69 74 65 20 43 6f 6d 6d |.Read/Wr|ite Comm|
|000052c0| 61 6e 64 73 09 43 6c 6f | 73 65 20 41 63 63 65 73 |ands.Clo|se Acces|
|000052d0| 73 09 43 6c 6f 73 65 73 | 20 61 20 66 69 6c 65 20 |s.Closes| a file |
|000052e0| 6f 70 65 6e 65 64 20 77 | 69 74 68 20 4f 70 65 6e |opened w|ith Open|
|000052f0| 20 0d 66 6f 72 20 41 63 | 63 65 73 73 2e 09 0d 09 | .for Ac|cess....|
|00005300| 47 65 74 20 45 4f 46 09 | 52 65 74 75 72 6e 73 20 |Get EOF.|Returns |
|00005310| 74 68 65 20 6f 66 66 73 | 65 74 2c 20 69 6e 20 62 |the offs|et, in b|
|00005320| 79 74 65 73 2c 20 6f 66 | 20 74 68 65 20 65 6e 64 |ytes, of| the end|
|00005330| 20 0d 6f 66 20 61 20 73 | 70 65 63 69 66 69 65 64 | .of a s|pecified|
|00005340| 20 66 69 6c 65 20 66 72 | 6f 6d 20 74 68 65 20 62 | file fr|om the b|
|00005350| 65 67 69 6e 6e 69 6e 67 | 20 0d 6f 66 20 74 68 65 |eginning| .of the|
|00005360| 20 66 69 6c 65 2e 09 0d | 09 4f 70 65 6e 20 66 6f | file...|.Open fo|
|00005370| 72 20 41 63 63 65 73 73 | 09 4f 70 65 6e 73 20 61 |r Access|.Opens a|
|00005380| 20 66 69 6c 65 20 66 6f | 72 20 72 65 61 64 69 6e | file fo|r readin|
|00005390| 67 20 6f 72 20 77 72 69 | 74 69 6e 67 20 75 73 69 |g or wri|ting usi|
|000053a0| 6e 67 20 52 65 61 64 20 | 6f 72 20 57 72 69 74 65 |ng Read |or Write|
|000053b0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 09 0d 09 52 65 61 | command|s....Rea|
|000053c0| 64 09 52 65 61 64 73 20 | 64 61 74 61 20 66 72 6f |d.Reads |data fro|
|000053d0| 6d 20 66 69 6c 65 20 70 | 72 65 76 69 6f 75 73 6c |m file p|reviousl|
|000053e0| 79 20 6f 70 65 6e 65 64 | 20 77 69 74 68 20 4f 70 |y opened| with Op|
|000053f0| 65 6e 20 66 6f 72 20 41 | 63 63 65 73 73 20 63 6f |en for A|ccess co|
|00005400| 6d 6d 61 6e 64 2c 20 6f | 72 20 6f 70 65 6e 73 20 |mmand, o|r opens |
|00005410| 66 69 6c 65 20 66 6f 72 | 20 61 63 63 65 73 73 2c |file for| access,|
|00005420| 20 72 65 61 64 73 20 64 | 61 74 61 2c 20 61 6e 64 | reads d|ata, and|
|00005430| 20 63 6c 6f 73 65 73 20 | 66 69 6c 65 2e 09 0d 09 | closes |file....|
|00005440| 53 65 74 20 45 4f 46 09 | 53 65 74 73 20 74 68 65 |Set EOF.|Sets the|
|00005450| 20 65 6e 64 20 6f 66 20 | 61 20 73 70 65 63 69 66 | end of |a specif|
|00005460| 69 65 64 20 66 69 6c 65 | 2e 09 0d 09 57 72 69 74 |ied file|....Writ|
|00005470| 65 09 57 72 69 74 65 73 | 20 64 61 74 61 20 74 6f |e.Writes| data to|
|00005480| 20 66 69 6c 65 20 70 72 | 65 76 69 6f 75 73 6c 79 | file pr|eviously|
|00005490| 20 6f 70 65 6e 65 64 20 | 77 69 74 68 20 4f 70 65 | opened |with Ope|
|000054a0| 6e 20 66 6f 72 20 41 63 | 63 65 73 73 20 63 6f 6d |n for Ac|cess com|
|000054b0| 6d 61 6e 64 2c 20 6f 72 | 20 6f 70 65 6e 73 20 66 |mand, or| opens f|
|000054c0| 69 6c 65 20 66 6f 72 20 | 61 63 63 65 73 73 2c 20 |ile for |access, |
|000054d0| 77 72 69 74 65 73 20 64 | 61 74 61 2c 20 61 6e 64 |writes d|ata, and|
|000054e0| 20 63 6c 6f 73 65 73 20 | 66 69 6c 65 2e 09 0d 52 | closes |file...R|
|000054f0| 75 6e 20 53 63 72 69 70 | 74 20 09 52 75 6e 20 53 |un Scrip|t .Run S|
|00005500| 63 72 69 70 74 09 52 75 | 6e 73 20 61 20 73 70 65 |cript.Ru|ns a spe|
|00005510| 63 69 66 69 65 64 20 73 | 63 72 69 70 74 2e 09 0d |cified s|cript...|
|00005520| 53 63 72 69 70 74 69 6e | 67 20 43 6f 6d 70 6f 6e |Scriptin|g Compon|
|00005530| 65 6e 74 73 09 53 63 72 | 69 70 74 69 6e 67 20 43 |ents.Scr|ipting C|
|00005540| 6f 6d 70 6f 6e 65 6e 74 | 73 09 52 65 74 75 72 6e |omponent|s.Return|
|00005550| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 74 68 65 20 |s a list| of the |
|00005560| 73 63 72 69 70 74 69 6e | 67 20 63 6f 6d 70 6f 6e |scriptin|g compon|
|00005570| 65 6e 74 73 20 63 75 72 | 72 65 6e 74 6c 79 20 61 |ents cur|rently a|
|00005580| 76 61 69 6c 61 62 6c 65 | 2e 09 0d 53 74 6f 72 65 |vailable|...Store|
|00005590| 20 53 63 72 69 70 74 09 | 53 74 6f 72 65 20 53 63 | Script.|Store Sc|
|000055a0| 72 69 70 74 09 53 74 6f | 72 65 73 20 61 20 73 70 |ript.Sto|res a sp|
|000055b0| 65 63 69 66 69 65 64 20 | 73 63 72 69 70 74 20 6f |ecified |script o|
|000055c0| 62 6a 65 63 74 20 69 6e | 20 61 20 73 70 65 63 69 |bject in| a speci|
|000055d0| 66 69 65 64 20 66 69 6c | 65 2e 09 0d 0d 63 6f 6e |fied fil|e....con|
|000055e0| 74 69 6e 75 65 64 09 09 | 09 0d 53 74 72 69 6e 67 |tinued..|..String|
|000055f0| 20 43 6f 6d 6d 61 6e 64 | 73 09 41 53 43 49 49 20 | Command|s.ASCII |
|00005600| 43 68 61 72 61 63 74 65 | 72 09 43 6f 6e 76 65 72 |Characte|r.Conver|
|00005610| 74 73 20 61 20 6e 75 6d | 62 65 72 20 74 6f 20 69 |ts a num|ber to i|
|00005620| 74 73 20 0d 41 53 43 49 | 49 20 65 71 75 69 76 61 |ts .ASCI|I equiva|
|00005630| 6c 65 6e 74 2e 09 0d 09 | 41 53 43 49 49 20 4e 75 |lent....|ASCII Nu|
|00005640| 6d 62 65 72 09 52 65 74 | 75 72 6e 73 20 74 68 65 |mber.Ret|urns the|
|00005650| 20 41 53 43 49 49 20 6e | 75 6d 62 65 72 20 0d 6f | ASCII n|umber .o|
|00005660| 66 20 61 20 63 68 61 72 | 61 63 74 65 72 2e 09 0d |f a char|acter...|
|00005670| 09 4f 66 66 73 65 74 09 | 44 65 74 65 72 6d 69 6e |.Offset.|Determin|
|00005680| 65 73 20 74 68 65 20 6f | 66 66 73 65 74 20 6f 66 |es the o|ffset of|
|00005690| 20 61 20 73 74 72 69 6e | 67 20 0d 77 69 74 68 69 | a strin|g .withi|
|000056a0| 6e 20 61 6e 6f 74 68 65 | 72 20 73 74 72 69 6e 67 |n anothe|r string|
|000056b0| 2e 09 0d 54 69 6d 65 20 | 74 6f 20 47 4d 54 09 54 |...Time |to GMT.T|
|000056c0| 69 6d 65 20 74 6f 20 47 | 4d 54 09 52 65 74 75 72 |ime to G|MT.Retur|
|000056d0| 6e 73 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 63 |ns the d|ifferenc|
|000056e0| 65 2c 20 69 6e 20 73 65 | 63 6f 6e 64 73 2c 20 62 |e, in se|conds, b|
|000056f0| 65 74 77 65 65 6e 20 74 | 68 65 20 63 75 72 72 65 |etween t|he curre|
|00005700| 6e 74 20 74 69 6d 65 20 | 61 6e 64 20 47 72 65 65 |nt time |and Gree|
|00005710| 6e 77 69 63 68 20 6d 65 | 61 6e 20 74 69 6d 65 2e |nwich me|an time.|
|00005720| 20 09 0d 0d 0d 0d 43 6f | 6d 6d 61 6e 64 20 44 65 | .....Co|mmand De|
|00005730| 66 69 6e 69 74 69 6f 6e | 73 0d 0d 54 68 65 20 73 |finition|s..The s|
|00005740| 65 63 74 69 6f 6e 73 20 | 74 68 61 74 20 66 6f 6c |ections |that fol|
|00005750| 6c 6f 77 20 61 72 65 20 | 69 6e 20 61 6c 70 68 61 |low are |in alpha|
|00005760| 62 65 74 69 63 61 6c 20 | 6f 72 64 65 72 20 62 79 |betical |order by|
|00005770| 20 63 6f 6d 6d 61 6e 64 | 20 6e 61 6d 65 20 61 6e | command| name an|
|00005780| 64 20 70 72 6f 76 69 64 | 65 20 64 65 66 69 6e 69 |d provid|e defini|
|00005790| 74 69 6f 6e 73 20 66 6f | 72 20 61 6c 6c 20 74 68 |tions fo|r all th|
|000057a0| 65 20 73 74 61 6e 64 61 | 72 64 20 73 63 72 69 70 |e standa|rd scrip|
|000057b0| 74 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 20 63 6f |ting add|ition co|
|000057c0| 6d 6d 61 6e 64 73 2e 20 | 46 6f 72 20 69 6e 66 6f |mmands. |For info|
|000057d0| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 75 73 |rmation |about us|
|000057e0| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 20 64 65 66 69 |ing comm|and defi|
|000057f0| 6e 69 74 69 6f 6e 73 2c | 20 73 65 65 20 43 68 61 |nitions,| see Cha|
|00005800| 70 74 65 72 20 34 2c 20 | d2 43 6f 6d 6d 61 6e 64 |pter 4, |.Command|
|00005810| 73 2c d3 20 0d 6f 66 20 | 74 68 65 20 41 70 70 6c |s,. .of |the Appl|
|00005820| 65 53 63 72 69 70 74 20 | 4c 61 6e 67 75 61 67 65 |eScript |Language|
|00005830| 20 47 75 69 64 65 2e 0d | 41 63 74 69 76 61 74 65 | Guide..|Activate|
|00005840| 0d 0d 54 68 65 20 41 63 | 74 69 76 61 74 65 20 63 |..The Ac|tivate c|
|00005850| 6f 6d 6d 61 6e 64 20 62 | 72 69 6e 67 73 20 61 6e |ommand b|rings an|
|00005860| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|00005870| 74 68 65 20 66 72 6f 6e | 74 20 28 74 68 61 74 20 |the fron|t (that |
|00005880| 69 73 2c 20 69 74 73 20 | 77 69 6e 64 6f 77 20 62 |is, its |window b|
|00005890| 65 63 6f 6d 65 73 20 74 | 68 65 20 66 72 6f 6e 74 |ecomes t|he front|
|000058a0| 6d 6f 73 74 20 77 69 6e | 64 6f 77 20 6f 6e 20 74 |most win|dow on t|
|000058b0| 68 65 20 64 65 73 6b 74 | 6f 70 29 2e 20 49 66 20 |he deskt|op). If |
|000058c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|000058d0| 69 73 20 6f 6e 20 74 68 | 65 20 6c 6f 63 61 6c 20 |is on th|e local |
|000058e0| 63 6f 6d 70 75 74 65 72 | 2c 20 41 70 70 6c 65 53 |computer|, AppleS|
|000058f0| 63 72 69 70 74 20 6f 70 | 65 6e 73 20 74 68 65 20 |cript op|ens the |
|00005900| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 66 20 69 |applicat|ion if i|
|00005910| 74 20 69 73 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 |t is not| already|
|00005920| 20 72 75 6e 6e 69 6e 67 | 2e 20 49 66 20 74 68 65 | running|. If the|
|00005930| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00005940| 6f 6e 20 61 20 72 65 6d | 6f 74 65 20 63 6f 6d 70 |on a rem|ote comp|
|00005950| 75 74 65 72 2c 20 69 74 | 20 6d 75 73 74 20 62 65 |uter, it| must be|
|00005960| 20 72 75 6e 6e 69 6e 67 | 20 61 6c 72 65 61 64 79 | running| already|
|00005970| 2e 20 0d 55 6e 6c 69 6b | 65 20 6d 6f 73 74 20 6f |. .Unlik|e most o|
|00005980| 74 68 65 72 20 73 63 72 | 69 70 74 69 6e 67 20 61 |ther scr|ipting a|
|00005990| 64 64 69 74 69 6f 6e 73 | 2c 20 74 68 65 20 41 63 |dditions|, the Ac|
|000059a0| 74 69 76 61 74 65 20 63 | 6f 6d 6d 61 6e 64 20 69 |tivate c|ommand i|
|000059b0| 73 20 62 75 69 6c 74 20 | 69 6e 74 6f 20 0d 74 68 |s built |into .th|
|000059c0| 65 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 65 78 |e AppleS|cript ex|
|000059d0| 74 65 6e 73 69 6f 6e 2e | 20 49 74 20 64 6f 65 73 |tension.| It does|
|000059e0| 20 6e 6f 74 20 68 61 76 | 65 20 61 20 73 65 70 61 | not hav|e a sepa|
|000059f0| 72 61 74 65 20 66 69 6c | 65 20 69 6e 20 74 68 65 |rate fil|e in the|
|00005a00| 20 53 63 72 69 70 74 69 | 6e 67 20 41 64 64 69 74 | Scripti|ng Addit|
|00005a10| 69 6f 6e 73 20 66 6f 6c | 64 65 72 2e 0d 53 59 4e |ions fol|der..SYN|
|00005a20| 54 41 58 0d 61 63 74 69 | 76 61 74 65 20 72 65 66 |TAX.acti|vate ref|
|00005a30| 65 72 65 6e 63 65 54 6f | 41 70 70 6c 69 63 61 74 |erenceTo|Applicat|
|00005a40| 69 6f 6e 0d 50 41 52 41 | 4d 45 54 45 52 0d 72 65 |ion.PARA|METER.re|
|00005a50| 66 65 72 65 6e 63 65 54 | 6f 41 70 70 6c 69 63 61 |ferenceT|oApplica|
|00005a60| 74 69 6f 6e 0d 41 20 72 | 65 66 65 72 65 6e 63 65 |tion.A r|eference|
|00005a70| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 20 61 70 70 | of the |form app|
|00005a80| 6c 69 63 61 74 69 6f 6e | 20 6e 61 6d 65 53 74 72 |lication| nameStr|
|00005a90| 69 6e 67 20 28 73 65 65 | 20 d2 4e 6f 74 65 73 d3 |ing (see| .Notes.|
|00005aa0| 29 2e 0d 43 6c 61 73 73 | 3a 20 52 65 66 65 72 65 |)..Class|: Refere|
|00005ab0| 6e 63 65 0d 52 45 53 55 | 4c 54 0d 4e 6f 6e 65 0d |nce.RESU|LT.None.|
|00005ac0| 45 58 41 4d 50 4c 45 53 | 0d 73 65 74 20 78 20 74 |EXAMPLES|.set x t|
|00005ad0| 6f 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 22 53 |o applic|ation "S|
|00005ae0| 63 72 69 70 74 61 62 6c | 65 20 54 65 78 74 20 45 |criptabl|e Text E|
|00005af0| 64 69 74 6f 72 22 0d 61 | 63 74 69 76 61 74 65 20 |ditor".a|ctivate |
|00005b00| 78 0d 61 63 74 69 76 61 | 74 65 20 61 70 70 6c 69 |x.activa|te appli|
|00005b10| 63 61 74 69 6f 6e 20 c2 | 0d 09 22 4d 61 63 20 48 |cation .|.."Mac H|
|00005b20| 44 3a 41 70 70 6c 69 63 | 61 74 69 6f 6e 73 3a 53 |D:Applic|ations:S|
|00005b30| 63 72 69 70 74 61 62 6c | 65 20 54 65 78 74 20 45 |criptabl|e Text E|
|00005b40| 64 69 74 6f 72 22 0d 74 | 65 6c 6c 20 61 70 70 6c |ditor".t|ell appl|
|00005b50| 69 63 61 74 69 6f 6e 20 | 22 53 63 72 69 70 74 61 |ication |"Scripta|
|00005b60| 62 6c 65 20 54 65 78 74 | 20 45 64 69 74 6f 72 22 |ble Text| Editor"|
|00005b70| 0d 09 61 63 74 69 76 61 | 74 65 0d 65 6e 64 20 74 |..activa|te.end t|
|00005b80| 65 6c 6c 0d 74 65 6c 6c | 20 61 70 70 6c 69 63 61 |ell.tell| applica|
|00005b90| 74 69 6f 6e 20 22 53 63 | 72 69 70 74 61 62 6c 65 |tion "Sc|riptable|
|00005ba0| 20 54 65 78 74 20 45 64 | 69 74 6f 72 22 20 74 6f | Text Ed|itor" to|
|00005bb0| 20 61 63 74 69 76 61 74 | 65 0d 4e 4f 54 45 53 0d | activat|e.NOTES.|
|00005bc0| 54 68 65 20 77 61 79 20 | 79 6f 75 20 73 70 65 63 |The way |you spec|
|00005bd0| 69 66 79 20 74 68 65 20 | 6e 61 6d 65 20 28 6e 61 |ify the |name (na|
|00005be0| 6d 65 53 74 72 69 6e 67 | 29 20 6f 66 20 74 68 65 |meString|) of the|
|00005bf0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 79 6f 75 | applica|tion you|
|00005c00| 20 77 61 6e 74 20 74 6f | 20 61 63 74 69 76 61 74 | want to| activat|
|00005c10| 65 20 64 65 70 65 6e 64 | 73 20 6f 6e 20 77 68 65 |e depend|s on whe|
|00005c20| 74 68 65 72 20 74 68 65 | 20 61 70 70 6c 69 63 61 |ther the| applica|
|00005c30| 74 69 6f 6e 20 69 73 20 | 6f 6e 20 61 20 6c 6f 63 |tion is |on a loc|
|00005c40| 61 6c 20 6f 72 20 72 65 | 6d 6f 74 65 20 63 6f 6d |al or re|mote com|
|00005c50| 70 75 74 65 72 2e 0d 54 | 6f 20 73 70 65 63 69 66 |puter..T|o specif|
|00005c60| 79 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |y an app|lication|
|00005c70| 20 6f 6e 20 74 68 65 20 | 6c 6f 63 61 6c 20 63 6f | on the |local co|
|00005c80| 6d 70 75 74 65 72 2c 20 | 75 73 65 20 61 20 73 74 |mputer, |use a st|
|00005c90| 72 69 6e 67 20 6f 66 20 | 74 68 65 20 66 6f 72 6d |ring of |the form|
|00005ca0| 20 22 44 69 73 6b 3a 46 | 6f 6c 64 65 72 31 3a 46 | "Disk:F|older1:F|
|00005cb0| 6f 6c 64 65 72 32 3a 2e | 2e 2e 3a 41 70 70 6c 69 |older2:.|..:Appli|
|00005cc0| 63 61 74 69 6f 6e 4e 61 | 6d 65 22 2e 20 59 6f 75 |cationNa|me". You|
|00005cd0| 20 63 61 6e 20 61 6c 73 | 6f 20 73 70 65 63 69 66 | can als|o specif|
|00005ce0| 79 20 61 20 73 74 72 69 | 6e 67 20 77 69 74 68 20 |y a stri|ng with |
|00005cf0| 6f 6e 6c 79 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |only an |applicat|
|00005d00| 69 6f 6e 20 6e 61 6d 65 | 20 28 22 41 70 70 6c 69 |ion name| ("Appli|
|00005d10| 63 61 74 69 6f 6e 4e 61 | 6d 65 22 29 2e 20 49 6e |cationNa|me"). In|
|00005d20| 20 74 68 69 73 20 63 61 | 73 65 2c 20 41 70 70 6c | this ca|se, Appl|
|00005d30| 65 53 63 72 69 70 74 20 | 61 74 74 65 6d 70 74 73 |eScript |attempts|
|00005d40| 20 74 6f 20 66 69 6e 64 | 20 74 68 65 20 61 70 70 | to find| the app|
|00005d50| 6c 69 63 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |lication| in the |
|00005d60| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00005d70| 79 2e 20 0d 54 6f 20 73 | 70 65 63 69 66 79 20 61 |y. .To s|pecify a|
|00005d80| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 6e |n applic|ation on|
|00005d90| 20 61 20 72 65 6d 6f 74 | 65 20 63 6f 6d 70 75 74 | a remot|e comput|
|00005da0| 65 72 2c 20 79 6f 75 20 | 6d 75 73 74 20 75 73 65 |er, you |must use|
|00005db0| 20 61 20 73 74 72 69 6e | 67 20 74 68 61 74 20 63 | a strin|g that c|
|00005dc0| 6f 6e 73 69 73 74 73 20 | 6f 66 20 74 68 65 20 6e |onsists |of the n|
|00005dd0| 61 6d 65 20 6f 66 20 74 | 68 65 20 61 70 70 6c 69 |ame of t|he appli|
|00005de0| 63 61 74 69 6f 6e 20 61 | 73 20 69 74 20 77 6f 75 |cation a|s it wou|
|00005df0| 6c 64 20 62 65 20 6c 69 | 73 74 65 64 20 69 6e 20 |ld be li|sted in |
|00005e00| 74 68 65 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |the Appl|ication |
|00005e10| 6d 65 6e 75 20 28 22 41 | 70 70 6c 69 63 61 74 69 |menu ("A|pplicati|
|00005e20| 6f 6e 4e 61 6d 65 22 29 | 2c 20 61 6e 64 20 79 6f |onName")|, and yo|
|00005e30| 75 20 6d 75 73 74 20 61 | 6c 73 6f 20 73 70 65 63 |u must a|lso spec|
|00005e40| 69 66 79 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ify the |name of |
|00005e50| 74 68 65 20 63 6f 6d 70 | 75 74 65 72 20 61 6e 64 |the comp|uter and|
|00005e60| 20 69 66 20 6e 65 63 65 | 73 73 61 72 79 20 74 68 | if nece|ssary th|
|00005e70| 65 20 7a 6f 6e 65 20 69 | 6e 20 77 68 69 63 68 20 |e zone i|n which |
|00005e80| 74 68 65 20 63 6f 6d 70 | 75 74 65 72 20 69 73 20 |the comp|uter is |
|00005e90| 6c 6f 63 61 74 65 64 2e | 20 0d 54 68 65 20 61 70 |located.| .The ap|
|00005ea0| 70 6c 69 63 61 74 69 6f | 6e 20 6d 75 73 74 20 62 |plicatio|n must b|
|00005eb0| 65 20 72 75 6e 6e 69 6e | 67 2e 20 54 68 65 20 41 |e runnin|g. The A|
|00005ec0| 63 74 69 76 61 74 65 20 | 63 6f 6d 6d 61 6e 64 20 |ctivate |command |
|00005ed0| 64 6f 65 73 20 6e 6f 74 | 20 6c 61 75 6e 63 68 20 |does not| launch |
|00005ee0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 6f 6e 20 |applicat|ions on |
|00005ef0| 72 65 6d 6f 74 65 20 6d | 61 63 68 69 6e 65 73 2e |remote m|achines.|
|00005f00| 0d 46 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d |.For mor|e inform|
|00005f10| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 72 65 66 65 |ation ab|out refe|
|00005f20| 72 65 6e 63 65 73 20 74 | 6f 20 61 70 70 6c 69 63 |rences t|o applic|
|00005f30| 61 74 69 6f 6e 73 2c 20 | 73 65 65 20 43 68 61 70 |ations, |see Chap|
|00005f40| 74 65 72 20 35 2c 20 d2 | 4f 62 6a 65 63 74 73 20 |ter 5, .|Objects |
|00005f50| 61 6e 64 20 52 65 66 65 | 72 65 6e 63 65 73 2c d3 |and Refe|rences,.|
|00005f60| 20 6f 66 20 74 68 65 20 | 41 70 70 6c 65 53 63 72 | of the |AppleScr|
|00005f70| 69 70 74 20 4c 61 6e 67 | 75 61 67 65 20 47 75 69 |ipt Lang|uage Gui|
|00005f80| 64 65 2e 0d 45 52 52 4f | 52 53 0d 45 72 72 6f 72 |de..ERRO|RS.Error|
|00005f90| 0d 6e 75 6d 62 65 72 09 | 45 72 72 6f 72 20 6d 65 |.number.|Error me|
|00005fa0| 73 73 61 67 65 09 0d d0 | 36 30 30 09 41 70 70 6c |ssage...|600.Appl|
|00005fb0| 69 63 61 74 69 6f 6e 20 | 69 73 6e 27 74 20 72 75 |ication |isn't ru|
|00005fc0| 6e 6e 69 6e 67 2e 09 0d | d0 36 30 36 09 41 70 70 |nning...|.606.App|
|00005fd0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 62 61 63 6b |lication| is back|
|00005fe0| 67 72 6f 75 6e 64 2d 6f | 6e 6c 79 2e 09 0d 0d 41 |ground-o|nly....A|
|00005ff0| 53 43 49 49 20 43 68 61 | 72 61 63 74 65 72 0d 0d |SCII Cha|racter..|
|00006000| 54 68 65 20 41 53 43 49 | 49 20 43 68 61 72 61 63 |The ASCI|I Charac|
|00006010| 74 65 72 20 63 6f 6d 6d | 61 6e 64 20 72 65 74 75 |ter comm|and retu|
|00006020| 72 6e 73 20 74 68 65 20 | 41 53 43 49 49 20 63 68 |rns the |ASCII ch|
|00006030| 61 72 61 63 74 65 72 20 | 61 73 73 6f 63 69 61 74 |aracter |associat|
|00006040| 65 64 20 77 69 74 68 20 | 61 20 73 70 65 63 69 66 |ed with |a specif|
|00006050| 69 65 64 20 6e 75 6d 62 | 65 72 2e 20 49 74 20 69 |ied numb|er. It i|
|00006060| 73 20 6f 6e 65 20 6f 66 | 20 73 65 76 65 72 61 6c |s one of| several|
|00006070| 20 63 6f 6d 6d 61 6e 64 | 73 20 70 72 6f 76 69 64 | command|s provid|
|00006080| 65 64 20 62 79 20 74 68 | 65 20 53 74 72 69 6e 67 |ed by th|e String|
|00006090| 20 43 6f 6d 6d 61 6e 64 | 73 20 73 63 72 69 70 74 | Command|s script|
|000060a0| 69 6e 67 20 61 64 64 69 | 74 69 6f 6e 2e 0d 53 59 |ing addi|tion..SY|
|000060b0| 4e 54 41 58 0d 41 53 43 | 49 49 20 63 68 61 72 61 |NTAX.ASC|II chara|
|000060c0| 63 74 65 72 20 69 6e 74 | 65 67 65 72 0d 50 41 52 |cter int|eger.PAR|
|000060d0| 41 4d 45 54 45 52 0d 69 | 6e 74 65 67 65 72 20 09 |AMETER.i|nteger .|
|000060e0| 41 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 20 74 68 |An expre|ssion th|
|000060f0| 61 74 20 65 76 61 6c 75 | 61 74 65 73 20 74 6f 20 |at evalu|ates to |
|00006100| 61 6e 20 69 6e 74 65 67 | 65 72 20 62 65 74 77 65 |an integ|er betwe|
|00006110| 65 6e 20 31 20 61 6e 64 | 20 32 35 35 2e 20 0d 43 |en 1 and| 255. .C|
|00006120| 6c 61 73 73 3a 20 49 6e | 74 65 67 65 72 0d 52 45 |lass: In|teger.RE|
|00006130| 53 55 4c 54 0d 54 68 65 | 20 63 68 61 72 61 63 74 |SULT.The| charact|
|00006140| 65 72 20 74 68 61 74 20 | 63 6f 72 72 65 73 70 6f |er that |correspo|
|00006150| 6e 64 73 20 74 6f 20 74 | 68 65 20 73 70 65 63 69 |nds to t|he speci|
|00006160| 66 69 65 64 20 41 53 43 | 49 49 20 6e 75 6d 62 65 |fied ASC|II numbe|
|00006170| 72 2e 0d 45 58 41 4d 50 | 4c 45 53 0d 41 53 43 49 |r..EXAMP|LES.ASCI|
|00006180| 49 20 63 68 61 72 61 63 | 74 65 72 20 31 30 30 20 |I charac|ter 100 |
|00006190| 0d 2d 2d 72 65 73 75 6c | 74 3a 20 22 64 22 0d 41 |.--resul|t: "d".A|
|000061a0| 53 43 49 49 20 63 68 61 | 72 61 63 74 65 72 20 31 |SCII cha|racter 1|
|000061b0| 30 31 0d 2d 2d 72 65 73 | 75 6c 74 3a 20 22 65 22 |01.--res|ult: "e"|
|000061c0| 0d 45 52 52 4f 52 53 0d | 45 72 72 6f 72 0d 6e 75 |.ERRORS.|Error.nu|
|000061d0| 6d 62 65 72 09 45 72 72 | 6f 72 20 6d 65 73 73 61 |mber.Err|or messa|
|000061e0| 67 65 09 0d d0 31 30 38 | 09 4f 75 74 20 6f 66 20 |ge...108|.Out of |
|000061f0| 6d 65 6d 6f 72 79 2e 09 | 0d d0 31 37 30 30 09 43 |memory..|..1700.C|
|00006200| 61 6e 27 74 20 6d 61 6b | 65 20 73 6f 6d 65 20 64 |an't mak|e some d|
|00006210| 61 74 61 20 69 6e 74 6f | 20 74 68 65 20 65 78 70 |ata into| the exp|
|00006220| 65 63 74 65 64 20 74 79 | 70 65 2e 09 0d d0 31 37 |ected ty|pe....17|
|00006230| 30 31 09 53 6f 6d 65 20 | 70 61 72 61 6d 65 74 65 |01.Some |paramete|
|00006240| 72 20 69 73 20 6d 69 73 | 73 69 6e 67 20 66 6f 72 |r is mis|sing for|
|00006250| 20 3c 63 6f 6d 6d 61 6e | 64 4e 61 6d 65 3e 2e 09 | <comman|dName>..|
|00006260| 0d d0 31 37 30 34 09 53 | 6f 6d 65 20 70 61 72 61 |..1704.S|ome para|
|00006270| 6d 65 74 65 72 20 77 61 | 73 20 69 6e 76 61 6c 69 |meter wa|s invali|
|00006280| 64 2e 09 0d d0 31 37 30 | 35 09 4f 70 65 72 61 74 |d....170|5.Operat|
|00006290| 69 6f 6e 20 69 6e 76 6f | 6c 76 69 6e 67 20 61 20 |ion invo|lving a |
|000062a0| 6c 69 73 74 20 69 74 65 | 6d 20 66 61 69 6c 65 64 |list ite|m failed|
|000062b0| 2e 09 0d d0 31 37 31 38 | 09 52 65 70 6c 79 20 68 |....1718|.Reply h|
|000062c0| 61 73 20 6e 6f 74 20 79 | 65 74 20 61 72 72 69 76 |as not y|et arriv|
|000062d0| 65 64 2e 09 0d d0 31 37 | 32 30 09 49 6e 76 61 6c |ed....17|20.Inval|
|000062e0| 69 64 20 72 61 6e 67 65 | 2e 09 0d 20 0d 41 53 43 |id range|... .ASC|
|000062f0| 49 49 20 4e 75 6d 62 65 | 72 0d 0d 54 68 65 20 41 |II Numbe|r..The A|
|00006300| 53 43 49 49 20 4e 75 6d | 62 65 72 20 63 6f 6d 6d |SCII Num|ber comm|
|00006310| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |and retu|rns the |
|00006320| 41 53 43 49 49 20 6e 75 | 6d 62 65 72 20 61 73 73 |ASCII nu|mber ass|
|00006330| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 61 20 73 |ociated |with a s|
|00006340| 70 65 63 69 66 69 65 64 | 20 63 68 61 72 61 63 74 |pecified| charact|
|00006350| 65 72 2e 20 49 74 20 69 | 73 20 6f 6e 65 20 6f 66 |er. It i|s one of|
|00006360| 20 73 65 76 65 72 61 6c | 20 63 6f 6d 6d 61 6e 64 | several| command|
|00006370| 73 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |s provid|ed by th|
|00006380| 65 20 53 74 72 69 6e 67 | 20 43 6f 6d 6d 61 6e 64 |e String| Command|
|00006390| 73 20 73 63 72 69 70 74 | 69 6e 67 20 61 64 64 69 |s script|ing addi|
|000063a0| 74 69 6f 6e 2e 0d 53 59 | 4e 54 41 58 0d 41 53 43 |tion..SY|NTAX.ASC|
|000063b0| 49 49 20 6e 75 6d 62 65 | 72 20 73 74 72 69 6e 67 |II numbe|r string|
|000063c0| 20 0d 50 41 52 41 4d 45 | 54 45 52 0d 73 74 72 69 | .PARAME|TER.stri|
|000063d0| 6e 67 09 41 6e 20 41 53 | 43 49 49 20 63 68 61 72 |ng.An AS|CII char|
|000063e0| 61 63 74 65 72 2e 20 0d | 43 6c 61 73 73 3a 20 53 |acter. .|Class: S|
|000063f0| 74 72 69 6e 67 0d 52 45 | 53 55 4c 54 0d 54 68 65 |tring.RE|SULT.The|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.